Command::long_flag_aliases
long_flag_aliases
Section titled “long_flag_aliases ”Add aliases, which function as “hidden” long flag subcommands.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "test"long-flag = "test"long-flag-aliases = ["testing", "testall", "test_all"][subcommands.args]input = { required = false, help = "the file to add" }
name: myprogsubcommands:- name: test long-flag: test long-flag-aliases: - testing - testall - test_all args: input: required: false help: the file to add
{ "name": "myprog", "subcommands": [ { "name": "test", "long-flag": "test", "long-flag-aliases": [ "testing", "testall", "test_all" ], "args": { "input": { "required": false, "help": "the file to add" } } } ]}
myprog --testing
Output
Section titled “Output”claptrap__subcommand='test'