Skip to content

Command::short_flag_aliases

since 0.1.0

Add aliases, which function as “hidden” short flag subcommands.

name = "myprog"
[[subcommands]]
name = "test"
short-flag-aliases = ['a', 'b', 'c']
[subcommands.args]
input = { required = false, help = "the file to add" }
Terminal window
prog -a
Terminal window
claptrap__subcommand='test'