Hi, I'm new here.
A duplicate option on the command line does not generate an error, and overwrites the original parsed value with the duplicate value.
[Edited for clarity]
foo -o bar -o second_bar produces no error, and a single -o option "second_bar".
At worst, this should be an error, correct? At best, I'd like to collect an array of option values.
My workaround is to collect values in a static
[String] array, ignore the value supplied by the parser, and convert the static array into parameters in the
validate closure. But this is not ideal.
- is it a bad idea to offer multiple "-o" options for my CLI?
- Is the lack of an error message for multiple options worthy of a Bug Report on Github?
- Is supporting multiple options worthy of a Feature Request on GitHub?
- Should I just dive in, branch, and submit a PR?