clap/examples/tutorial_builder/02_crate.rs
2022-02-15 08:54:59 -06:00

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"));
}