Command::aliases
aliases
Section titled “aliases ”Sets multiple hidden aliases to this subcommand.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "test"aliases = ["do-stuff", "do-tests", "tests"][subcommands.args]input = { required = false, help = "the file to add" }
name: myprogsubcommands:- name: test aliases: - do-stuff - do-tests - tests args: input: required: false help: the file to add
{ "name": "myprog", "subcommands": [ { "name": "test", "aliases": [ "do-stuff", "do-tests", "tests" ], "args": { "input": { "required": false, "help": "the file to add" } } } ]}
myprog do-tests
Output
Section titled “Output”claptrap__subcommand='test'