]>
git.proxmox.com Git - rustc.git/blob - vendor/clap/examples/tutorial_derive/04_02_parse.rs
4 #[clap(author, version, about, long_about = None)]
6 /// Network port to use
7 #[clap(value_parser = clap::value_parser!(u16).range(1..))]
12 let cli
= Cli
::parse();
14 println
!("PORT = {}", cli
.port
);