Skip to content

Command::visible_long_flag_alias

since 0.1.0

Add an alias, which functions as a “visible” long flag subcommand.

name = "myprog"
[[subcommands]]
name = "test"
long-flag = "test"
visible-long-flag-alias = "testing"
[subcommands.args]
input = { required = false, help = "the file to add" }
Terminal window
prog --testing file.txt
Terminal window
claptrap__subcommand='test'
claptrap_test_input='file.txt'