Command::long_flag_alias
long_flag_alias
Section titled “long_flag_alias ”Add an alias, which functions as a “hidden” long flag subcommand.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "test"long-flag = "test"long-flag-alias = "testing"[subcommands.args]search = { short = 's', long = "search", action = "set-true" }
name: myprogsubcommands:- name: test long-flag: test long-flag-alias: testing args: search: short: s long: search action: set-true
{ "name": "myprog", "subcommands": [ { "name": "test", "long-flag": "test", "long-flag-alias": "testing", "args": { "search": { "short": "s", "long": "search", "action": "set-true" } } } ]}
myprog --testing -s
Output
Section titled “Output”claptrap__subcommand='test'claptrap_test_search='true'