summaryrefslogtreecommitdiffstats
path: root/vendor/clap/examples/tutorial_builder/03_03_positional.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vendor/clap/examples/tutorial_builder/03_03_positional.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/clap/examples/tutorial_builder/03_03_positional.rs b/vendor/clap/examples/tutorial_builder/03_03_positional.rs
index c6579409a..0c3a5f037 100644
--- a/vendor/clap/examples/tutorial_builder/03_03_positional.rs
+++ b/vendor/clap/examples/tutorial_builder/03_03_positional.rs
@@ -1,9 +1,9 @@
-// Note: this requires the `cargo` feature
-
use clap::{arg, command};
fn main() {
- let matches = command!().arg(arg!([NAME])).get_matches();
+ let matches = command!() // requires `cargo` feature
+ .arg(arg!([NAME]))
+ .get_matches();
println!("NAME: {:?}", matches.get_one::<String>("NAME"));
}