Command::visible_alias
visible_alias
Section titled “visible_alias ”Sets a visible alias to this subcommand.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "test"visible-alias = "do-stuff"[subcommands.args]input = { required = false, help = "the file to add" }
name: myprogsubcommands:- name: test visible-alias: do-stuff args: input: required: false help: the file to add
{ "name": "myprog", "subcommands": [ { "name": "test", "visible-alias": "do-stuff", "args": { "input": { "required": false, "help": "the file to add" } } } ]}
prog do-stuff file.txt
Output
Section titled “Output”claptrap__subcommand='test'claptrap_test_input='file.txt'