]>
git.proxmox.com Git - rustc.git/blob - vendor/clap/examples/tutorial_builder/03_02_option.rs
1 // Note: this requires the `cargo` feature
3 use clap
::{arg, command}
;
6 let matches
= command
!()
7 .arg(arg
!(-n
--name
<NAME
>).required(false))
10 println
!("name: {:?}", matches
.get_one
::<String
>("name"));