davetron5000 / gli

Make awesome command-line applications the easy way
http://davetron5000.github.io/gli
Apache License 2.0
1.26k stars 102 forks source link

Clarify CLI syntax for multi-value arguments #290

Closed Bluewind closed 4 years ago

Bluewind commented 4 years ago

GLI will not strip comma characters from the end of arguments. If a user is following the help syntax for a multi-value argument, the first to N-1 values parsed will be incorrect (have an unstripped comma at the end of the value). Solve this by printing the argument name only once, followed by '...' directly. This is similar to the behaviour of git.

Signed-off-by: Florian Pritz bluewind@xinu.at

davetron5000 commented 4 years ago

This is a good change, but the tests are failing since they expect the original syntax. if you can get them passing I can merge/release.

Bluewind commented 4 years ago

I've fixed the tests now.

davetron5000 commented 4 years ago

Released as 2.19.0 Thanks!