diff options
Diffstat (limited to 'vendor/clap/examples/tutorial_builder/03_02_option.rs')
-rw-r--r-- | vendor/clap/examples/tutorial_builder/03_02_option.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/vendor/clap/examples/tutorial_builder/03_02_option.rs b/vendor/clap/examples/tutorial_builder/03_02_option.rs deleted file mode 100644 index 188244566..000000000 --- a/vendor/clap/examples/tutorial_builder/03_02_option.rs +++ /dev/null @@ -1,9 +0,0 @@ -use clap::{arg, command}; - -fn main() { - let matches = command!() // requires `cargo` feature - .arg(arg!(-n --name <NAME>).required(false)) - .get_matches(); - - println!("name: {:?}", matches.get_one::<String>("name")); -} |