indicate in help if arguments are optional or repeatable#20
indicate in help if arguments are optional or repeatable#20koertkuipers wants to merge 3 commits into
Conversation
|
Can you describe how you present the additional information? |
if something is required it shows up as this makes it easier to understand from help what flags are required, which are optional, which are repeatable, etc. |
|
I think "options" already transport their optional-ity, and having all options in extra brackets makes the list harder to read. Instead, we should denote mandatory argument in the synopsis / usage string. This is also what many linux cli tools do. |
|
Yeah I'm not a fan of putting everything in square brackets. It's not a convention I've seen elsewhere. That begs the question: what is the convention for denoting optional/mandatory flags in a CLI help message? What does everyone else do? |
|
i took the convention of square brackets from linux man pages. e.g.: currently ArgSig and TokensReader hold a lot of information that would be useful to any user but that does not show up in |
i do not know if this is of interest to anyone else, but we wanted our users to get more info in the help message. specifically we wanted help to convey is the argument allows empty or is repeatable.