Command::short_flag
short_flag
Section titled “short_flag ”Sets the short version of the subcommand flag without the preceding -
.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "sync"short-flag = 'S'[subcommands.args]search = { short = 's', long = "search", action = "set-true", help = "search remote repositories for matching stringsg" }
name: myprogsubcommands:- name: sync short-flag: S args: search: short: s long: search action: set-true help: search remote repositories for matching stringsg
{ "name": "myprog", "subcommands": [ { "name": "sync", "short-flag": "S", "args": { "search": { "short": "s", "long": "search", "action": "set-true", "help": "search remote repositories for matching stringsg" } } } ]}
prog -Ss
Output
Section titled “Output”claptrap__subcommand='sync'claptrap_sync_search='true'