Skip to content

Command::infer_subcommands

since 0.1.0

Allow partial matches of subcommand names and their aliases.

name = "myprog"
infer-subcommands = true
[[subcommands]]
name = "test"
[subcommands.args]
arg1 = { long = "arg1", action = "set-true" }
Terminal window
myprog te --arg1
Terminal window
claptrap__subcommand='test'
claptrap_test_arg1='true'