Skip to content

Command::long_flag_aliases

since 0.1.0

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

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" }
Terminal window
myprog --testing
Terminal window
claptrap__subcommand='test'