aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/cl6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/cl b/bin/cl
index ee75b9a..12de987 100755
--- a/bin/cl
+++ b/bin/cl
@@ -176,7 +176,11 @@ while getopts 'e:f:pM:I:nvlh' flag; do
;;
esac
done
-shift $((OPTIND - 1))
+
+shift $((OPTIND - 2))
+if [ "$1" != '--' ]; then
+ shift
+fi
PRESERVE_ARGS=false
INTERACTIVE=true