Command::args
since 0.1.0
Terminal window
Terminal window
Adds multiple arguments to the list of valid possibilities.
Example
Section titled “Example”name = "myprog"[args]debug = { short = 'd', action = "set-true", help = "turns on debugging mode" }config = { short = 'c', long = "config", action = "set-true", value-name = "CONFIG", help = "Optionally sets a config file to use" }
name: myprogargs: debug: short: d action: set-true help: turns on debugging mode config: short: c long: config action: set-true value-name: CONFIG help: Optionally sets a config file to use
{ "name": "myprog", "args": { "debug": { "short": "d", "action": "set-true", "help": "turns on debugging mode" }, "config": { "short": "c", "long": "config", "action": "set-true", "value-name": "CONFIG", "help": "Optionally sets a config file to use" } }}
myprog -d -c
Output
Section titled “Output”claptrap_debug='true'claptrap_config='true'