-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
When using positional arguments, it is sometimes helpful to have the possibility to add a list of values, e.g. consider the following command line arguments:
compile file01 file02 file03In order to achieve this right now, one would have to use a named argument like so:
compile --files file01 file02 file 03In order to achieve this there should be an option to specify how many values for a positional argument are expected. The default should be 1, but users could specify any integer greater than 1. Also there should be the option to specify that any number of values greater than 1 are expected, but this should be restricted to a single positional argument. There must not be two positional arguments with an arbitrary number of arguments as this would be ambiguous while parsing.