Support multivalued options

Description

Currently, options can have at most one argument:

$ my-program --port 80

my current use case, which I believe is very common for command line tools, is to process multiple files which can be specified with a shell glob expression:

$ my-program --import *.csv

which gets expanded by the shell before the arguments are passed to my program:

Ideally, I could specify a :multivalued flag to the argument spec in order to consume more than one token from the arguments, i.e. until another option is provided or when the -- terminator is found:

Environment

None

Status

Assignee

Unassigned

Reporter

Carlo Sciolla

Labels

None

Approval

None

Patch

None

Priority

Major
Configure