Command::visible_long_flag_alias
visible_long_flag_alias
Section titled “visible_long_flag_alias ”Add an alias, which functions as a “visible” long flag subcommand.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "test"long-flag = "test"visible-long-flag-alias = "testing"[subcommands.args]input = { required = false, help = "the file to add" }
name: myprogsubcommands:- name: test long-flag: test visible-long-flag-alias: testing args: input: required: false help: the file to add
{ "name": "myprog", "subcommands": [ { "name": "test", "long-flag": "test", "visible-long-flag-alias": "testing", "args": { "input": { "required": false, "help": "the file to add" } } } ]}
prog --testing file.txt
Output
Section titled “Output”claptrap__subcommand='test'claptrap_test_input='file.txt'