-
Notifications
You must be signed in to change notification settings - Fork 481
IgnoreUnknownArguments does not work for values #156
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
Comments
Hi, I have the same issue... Thanks for advance |
@ericnewton76 Can you give me some pointers where the problem might be? I'm interested in seeing if I can fix this. |
A way around this while it is not fixed might be:
You can try it out. |
Hi, I agree with you RedX2501, what you propose can be a workaround. To be more explicit on the bug, here an example of 3 uses cases : https://dotnetfiddle.net/lSRQmO Regards, Code :
|
This is needed when you need to pass through args to third party tool like Unity Engine. |
@moh-hassan But then what is the point of |
@RedX2501 |
Well I'd expect to have two flags then.
Arguments after |
Wednesday Aug 09, 2017 at 20:14 GMT
Originally opened as gsscoder/commandline#467
Given the following snippet where
ParserSettings.IgnoreUnknownArguments = false
:And given the invocation:
app.exe bogus args
I would expect the parser to error out saying it does not understand the unknown arguments
bogus args
.Instead, it does not error out.
Context: I have an optional argument (e.g.
-a value
) and I had forgotten to type in the argument name (-a
), I typed in just the value. Instead of having the command line parser fail on encounteringvalue
, it continued working, causing quite a bit of debugging time :)The text was updated successfully, but these errors were encountered: