diff options
author | Andrew Gallant <jamslam@gmail.com> | 2018-02-03 14:31:40 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-02-04 10:40:20 -0500 |
commit | d83bab4d3f29a0176a20ea004c2cba44058d4210 (patch) | |
tree | 0a1841a81c4ee199c0b231509113941a36212c89 /complete | |
parent | ce84e1ef049cfa2500e7a2df6a1d4427f1b7a192 (diff) |
argv: permit repeated flags
This commit builds on the previous argv refactor by being more principled
about how we declared our flags. In particular, we now require that every
clap argument is one of three things: a positional argument, a switch or
a flag that accepts exactly one value. The latter two are always permitted
to be repeated, and we modify the code that consumes a clap::ArgMatches to
always use the *last* value of an argument. (clap by default always uses
the first value of argument, if it has been repeated and is accessed via
one of the singleton accessors.)
Fixes #553
Diffstat (limited to 'complete')
0 files changed, 0 insertions, 0 deletions