You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed in master, please confirm.
After this change, the usage message will be as below because of the changes made for #192:
Usage: app [-n=NAME]...
-n= NAME list of names
The #192 change means that multi-value options (array, list, map fields) no longer greedily consume arguments. They just consume 1 arg by default. If the user wants to specify multiple values they need to specify the option multiple times:
app -n AAA -n BBB -n CCC
With arity uncommented (meaning that every -n option can be followed by one or more NAMEs), the usage looks like this:
Usage: app [-n=NAME...]...
-n= NAME... list of names
I won't have a chance to try your latest improvements right now, sorry. I will try my best next week.
However I like the change made for #192, an option consuming multiple arguments is confusing and should be avoided in favor of specifying that option more than once
The following test app:
Produces:
It would be better something like this:
Interestingly uncommenting the
arity
specification produces a better usage:The text was updated successfully, but these errors were encountered: