Skip to content

Command::visible_short_flag_aliases

since 0.1.0

Add aliases, which function as visible short flag subcommands.

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