Skip to content

Make it possible to have collection types for positional arguments #6

@lecode-official

Description

@lecode-official

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 file03

In order to achieve this right now, one would have to use a named argument like so:

compile --files file01 file02 file 03

In 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.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions