-
Notifications
You must be signed in to change notification settings - Fork 431
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
Improve synopsis for commands with ArgGroups with positional parameters #1061
Comments
One way to accomplish this is to make non-group options always precede argument groups in the synopsis. (Simple, predictable, but potentially some disruption for existing applications.) Another idea is to only let options precede groups if the groups contain only positional parameters. Not sure if I like that idea. (Less predictable) Yet another idea is to make this configurable. That would raise more questions: what API do we want to offer, and what is the scope? For example, making the synopsis for groups configurable will be complex. Finally, we can leave it the way it is. (Simple, predictable, no disruption for existing applications, but sometimes gives a counter-intuitive synopsis.) Thoughts? |
IMHO, this is the way to go.
That seems to be overkill for me.
I'm not really happy with the current (inconsistent) way the synposis printed. That's why I raised and authored this issue. Just my two cents. |
I was thinking the same thing. We will do it that way. |
One small complication is when the end-of-options
|
…specify which options to show in the synopsis. [#1061] API: Add method `Help::makeSynopsisFromParts` for building complex synopsis strings.
Derived from #1050:
This results in:
IMHO, it were appropriate to swap parameters and help + version options:
The text was updated successfully, but these errors were encountered: