ArgGroup::multiple
multiple
Section titled “multiple ”Allows more than one of the Args in this group to be used.
Example
Section titled “Example”name = "myprog"[groups]req_flags = { args = ["flag", "color"], multiple = true }[args]flag = { short = 'f', action = "set-true" }color = { short = 'c', action = "set-true" }
name: myproggroups: req_flags: args: - flag - color multiple: trueargs: flag: short: f action: set-true color: short: c action: set-true
{ "name": "myprog", "groups": { "req_flags": { "args": [ "flag", "color" ], "multiple": true } }, "args": { "flag": { "short": "f", "action": "set-true" }, "color": { "short": "c", "action": "set-true" } }}
myprog -f -c
Output
Section titled “Output”claptrap_flag='true'claptrap_color='true'