mirror of
https://github.com/clap-rs/clap
synced 2025-01-06 09:48:43 +00:00
11 lines
305 B
Rust
11 lines
305 B
Rust
use clap::{arg, command};
|
|
|
|
fn main() {
|
|
let matches = command!()
|
|
.arg(arg!(--two <VALUE>))
|
|
.arg(arg!(--one <VALUE>))
|
|
.get_matches();
|
|
|
|
println!("two: {:?}", matches.value_of("two").expect("required"));
|
|
println!("one: {:?}", matches.value_of("one").expect("required"));
|
|
}
|