Closed computerquip-streamlabs closed 5 years ago
We try to keep Argtable3 as simple as possible. What you want to achieve can be implemented by using the string option and parsing/checking the data type by yourself.
I think -p 44 -p 55 -p 66
is acceptable, because when the command-line options become too long or too complicated, the entire command will be embedded in a shell script, a Makefile, or even be generated by another program to simplify the invocation of the command.
Keeping the syntax simple means fewer mistakes and fewer bugs. So we will not implement this feature for now. But thank you for your suggestion.
I don't see a way to specify multiple values at once for a parameter. For instance, I think
-p 44,55,66
is a bit more clear than-p 44 -p 55 -p 66
and perhaps a bit easier to parse. Since we know the type of the argument before hand, perhaps this can be specific to integers, doubles, etc. to avoid complicating the parsing of string values as well (where a comma or similar might be a valid part of the value string).