Skip to content
Discussion options

You must be logged in to vote

Yes. If you don't need to intermingle options and positional arguments on command-lines then you can just use a -- separator between options and arguments, e.g., sum -ab -cx -dy -- -1 -2 -3. If you do need to intermingle (much more rare) then you can prefix the - sign with a space as in sum -ab \ -1 -cx \ -2 -dy \ -3. You could also use quotes instead of escaping that space, of course, as in sum -ab " -1" -cx " -2" -dy " -3".

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by c-blake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants