Command::short_flag_aliases
short_flag_aliases
Section titled “short_flag_aliases ”Add aliases, which function as “hidden” short flag subcommands.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "test"short-flag-aliases = ['a', 'b', 'c'][subcommands.args]input = { required = false, help = "the file to add" }
name: myprogsubcommands:- name: test short-flag-aliases: - a - b - c args: input: required: false help: the file to add
{ "name": "myprog", "subcommands": [ { "name": "test", "short-flag-aliases": [ "a", "b", "c" ], "args": { "input": { "required": false, "help": "the file to add" } } } ]}
prog -a
Output
Section titled “Output”claptrap__subcommand='test'