-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double-dash --
parsing scenario
#343
Comments
This behavior is expected. The If you prefer using
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much for
argc
. I have adopted it as my "go-to" command parser.Summary
I have encountered a use case related to issue #251, in which parsing the command line like GNU getopt would be helpful. I, too, want to use argc to write a wrapper around another CLI tool to which I may wish to pass additional arguments and flags.
The issue arises when there are other arguments defined in addition to
# @arg remaining_args~
Environment
Description
My sample script
double-dash-tester.sh
appears as follows:With
argc 1.19.0
, I get the following output using a variety of flags:My reading of GNU Standards for Command Line Interfaces and the
getopt
sample code is that argument parsing should terminate upon finding a--
.I would anticipate the following results if parsing terminated on
--
:I don't assume that the GNU getopt behavior is the goal, but it would be helpful in my use case since I want to pass these arguments after the double-dash on to another command.
The text was updated successfully, but these errors were encountered: