From 571e3a5e158fc788b75bcf7101ee0de04a604da8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 8 Aug 2022 14:35:31 -0500 Subject: [PATCH] docs(tutorial): Use arg!s action selection --- examples/tutorial_builder/01_quick.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/tutorial_builder/01_quick.rs b/examples/tutorial_builder/01_quick.rs index 393d6aea..7e53fc65 100644 --- a/examples/tutorial_builder/01_quick.rs +++ b/examples/tutorial_builder/01_quick.rs @@ -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")