docs(tutorial): Use arg!s action selection

This commit is contained in:
Ed Page 2022-08-08 14:35:31 -05:00
parent f3d4c2c971
commit 571e3a5e15

View file

@ -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")