-
Notifications
You must be signed in to change notification settings - Fork 480
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
Verbatim values are parsed as options (when they shouldn't be) #159
Comments
I have the same problem. I want to specify parameters to my exe that are to be passed on to another .exe. For example:
|
Just found out that it works - kind of - when using a blank after the opening quotes, for example starter.exe SomeOtherExe -f " this is to=be -unparsed" (the difference will probably be hard to notice). Only downside is that the resulting string option will include the leading blank, but that should be handable. |
Now I still need to find out how (if at all) to escape quotes when needing to pass on these... |
This is not a bug, it's how CMD handle quotation marks and process commandline to get
in that case "-a -c" will be passed as one string to the Parser. |
I'm trying to build a string:
So I'm trying |
Issue by cdmihai
Friday Aug 18, 2017 at 23:32 GMT
Originally opened as gsscoder/commandline#470
Given an options class with an option of type string:
I would expect multi word values surrounded by quotes to be treated verbatim as a value for the string option.
Instead, CommandLineParser may end up parsing the verbatim string when it shouldn't:
The text was updated successfully, but these errors were encountered: