clap/examples/tutorial_builder/03_03_positional.rs

8 lines
172 B
Rust
Raw Normal View History

use clap::{app_from_crate, arg};
fn main() {
let matches = app_from_crate!().arg(arg!([NAME])).get_matches();
println!("NAME: {:?}", matches.value_of("NAME"));
}