1 use clap
::{arg, command, AppSettings, ArgAction}
;
4 let matches
= command
!() // requires `cargo` feature
5 .global_setting(AppSettings
::DeriveDisplayOrder
)
6 .allow_negative_numbers(true)
7 .arg(arg
!(--two
<VALUE
>).action(ArgAction
::Set
))
8 .arg(arg
!(--one
<VALUE
>).action(ArgAction
::Set
))
13 matches
.get_one
::<String
>("two").expect("required")
17 matches
.get_one
::<String
>("one").expect("required")