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) .required(false)
.value_parser(value_parser!(PathBuf)), .value_parser(value_parser!(PathBuf)),
) )
.arg( .arg(arg!(
arg!( -d --debug ... "Turn debugging information on"
-d --debug "Turn debugging information on" ))
)
.action(ArgAction::Count),
)
.subcommand( .subcommand(
Command::new("test") Command::new("test")
.about("does testing things") .about("does testing things")