Skip to content

Command::long_flag

since 0.1.0

Sets the long version of the subcommand flag without the preceding --.

name = "myprog"
[[subcommands]]
name = "sync"
long-flag = "sync"
[subcommands.args]
search = { short = 's', long = "search", action = "set-true", help = "search remote repositories for matching stringsg" }
Terminal window
myprog --sync --search
Terminal window
claptrap__subcommand='sync'
claptrap_sync_search='true'