Command::alias
alias
Section titled “alias ”Sets a hidden alias to this subcommand.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "test"alias = "do-stuff"[subcommands.args]search = { short = 's', long = "search", action = "set-true" }
name: myprogsubcommands:- name: test alias: do-stuff args: search: short: s long: search action: set-true
{ "name": "myprog", "subcommands": [ { "name": "test", "alias": "do-stuff", "args": { "search": { "short": "s", "long": "search", "action": "set-true" } } } ]}
myprog do-stuff -s
Output
Section titled “Output”claptrap__subcommand='test'claptrap_test_search='true'