mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 13:52:34 +00:00
docs(tutorial): Use arg!s action selection
This commit is contained in:
parent
f3d4c2c971
commit
571e3a5e15
1 changed files with 3 additions and 6 deletions
|
@ -13,12 +13,9 @@ fn main() {
|
|||
.required(false)
|
||||
.value_parser(value_parser!(PathBuf)),
|
||||
)
|
||||
.arg(
|
||||
arg!(
|
||||
-d --debug "Turn debugging information on"
|
||||
)
|
||||
.action(ArgAction::Count),
|
||||
)
|
||||
.arg(arg!(
|
||||
-d --debug ... "Turn debugging information on"
|
||||
))
|
||||
.subcommand(
|
||||
Command::new("test")
|
||||
.about("does testing things")
|
||||
|
|
Loading…
Reference in a new issue