-
Notifications
You must be signed in to change notification settings - Fork 478
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
What is the correct way to parse an argument with value - #574
Labels
Comments
Use triple quote to quote "-" in the commandline, , then it will passed to the parser with Single Quote: --somearg 2 --thisfails """-""" --anotherarg 3 |
In my testing, the triple quote returned a value of Thanks! |
To avoid tripple quote, merging options with single dash as a value is allowed:
|
Single dash will be considered as a value in the next release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a program that I would like to execute like so:
./myprogram --someArg 2 --thisFails - --anotherArg 3
Where the value of
thisFails
should be set to-
I've also tried:
"-"
to no availThe error I'm getting is:
The text was updated successfully, but these errors were encountered: