summaryrefslogtreecommitdiffstats
path: root/vendor/clap/examples/tutorial_builder/03_01_flag_bool.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vendor/clap/examples/tutorial_builder/03_01_flag_bool.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/clap/examples/tutorial_builder/03_01_flag_bool.rs b/vendor/clap/examples/tutorial_builder/03_01_flag_bool.rs
deleted file mode 100644
index 41ecbb1d7..000000000
--- a/vendor/clap/examples/tutorial_builder/03_01_flag_bool.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// Note: this requires the `cargo` feature
-
-use clap::{command, Arg, ArgAction};
-
-fn main() {
- let matches = command!()
- .arg(
- Arg::new("verbose")
- .short('v')
- .long("verbose")
- .action(ArgAction::SetTrue),
- )
- .get_matches();
-
- println!(
- "verbose: {:?}",
- *matches
- .get_one::<bool>("verbose")
- .expect("defaulted by clap")
- );
-}