]>
git.proxmox.com Git - rustc.git/blob - vendor/clap-4.2.1/examples/tutorial_builder/02_crate.rs
1 use clap
::{arg, command}
;
4 // requires `cargo` feature, reading name, version, author, and description from `Cargo.toml`
5 let matches
= command
!()
6 .arg(arg
!(--two
<VALUE
>).required(true))
7 .arg(arg
!(--one
<VALUE
>).required(true))
12 matches
.get_one
::<String
>("two").expect("required")
16 matches
.get_one
::<String
>("one").expect("required")