-
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
Consider alternative syntax #165
Comments
Fixed in #634. Example: var options = CommandLine.Parser.Default.ParseArguments<Options>(args).Value;
if (options != default) {
// ... do something with your options
} If you want both the parsed options and the errors, you would do something like this: var parsed = CommandLine.Parser.Default.ParseArguments<Options>(args);
if (parsed.Value != default) {
// ... do something with your options
} else {
// ... do something with Parsed.Errors
} |
@Korporal, not sure if you still care, but since you opened this issue initially, I thought I'd tag you that a PR has been created that is similar to your requested syntax |
merged #634 into develop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue by Korporal
Monday Sep 04, 2017 at 15:28 GMT
Originally opened as gsscoder/commandline#476
Hi,
Consider this generic approach, I think it's better for developers, simpler pattern:
just a thought...
The text was updated successfully, but these errors were encountered: