-
Notifications
You must be signed in to change notification settings - Fork 75
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
Usage string should display brackets for optional parameters #21
Comments
In my use cases most of the arguments are optional, so not too sure about this. Perhaps the converse would be required, denoting that arguments are mandatory? |
Using brackets for optional params is pretty standard. I'd rather you didn't come up with a standard for the reverse. ;) |
I would expect that bracket notation is usually kept for the first line of the usage string. Have you tried this? parseResults.Usage(message = "Usage: cmd -foo [-bar]") |
Good point! Maybe there should be an option to generate the usage string On Wed, Oct 8, 2014 at 5:38 PM, Eirik Tsarpalis notifications@github.com
|
Yeah, that sounds like a good idea. On Wed, Oct 8, 2014 at 10:38 PM, Robert Jeppesen notifications@github.com
|
Should I assume that the issue was resolved by PR #25? |
It is customary to display optional parameters with brackets:
The text was updated successfully, but these errors were encountered: