mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 22:02:35 +00:00
9 lines
202 B
Rust
9 lines
202 B
Rust
// Note: this requires the `cargo` feature
|
|
|
|
use clap::{arg, command};
|
|
|
|
fn main() {
|
|
let matches = command!().arg(arg!([NAME])).get_matches();
|
|
|
|
println!("NAME: {:?}", matches.value_of("NAME"));
|
|
}
|