Skip to content

Command::args

since 0.1.0

Adds multiple arguments to the list of valid possibilities.

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" }
Terminal window
myprog -d -c
Terminal window
claptrap_debug='true'
claptrap_config='true'