ArgGroup::args
since 0.1.0
Terminal window
Terminal window
Adds multiple arguments to this group by name.
Example
Section titled “Example”name = "myprog"[groups]req_flags = { args = ["flag", "color"] }[args]flag = { short = 'f', action = "set-true" }color = { short = 'c', action = "set-true" }
name: myproggroups: req_flags: args: - flag - colorargs: flag: short: f action: set-true color: short: c action: set-true
{ "name": "myprog", "groups": { "req_flags": { "args": [ "flag", "color" ] } }, "args": { "flag": { "short": "f", "action": "set-true" }, "color": { "short": "c", "action": "set-true" } }}
myprog -f
Output
Section titled “Output”claptrap_flag='true'claptrap_color='false'