]>
git.proxmox.com Git - rustc.git/blob - vendor/clap/examples/tutorial_builder/03_02_option.rs
1 use clap
::{command, Arg}
;
4 let matches
= command
!() // requires `cargo` feature
5 .arg(Arg
::new("name").short('n'
).long("name"))
8 println
!("name: {:?}", matches
.get_one
::<String
>("name"));