Skip to content

Command::subcommand_negates_reqs

since 0.1.0

Allows subcommands to override all requirements of the parent command.

name = "myprog"
subcommand-negates-reqs = true
[args]
opt = { long = "opt", required = true, action = "set" }
[[subcommands]]
name = "test"
[subcommands.args]
arg = { long = "arg", action = "set" }
Terminal window
myprog test --arg value
Terminal window
claptrap__subcommand='test'
claptrap_test_arg='value'