clap/clap_derive/tests/ui/bool_arg_enum.rs
2020-04-22 14:37:45 +02:00

13 lines
194 B
Rust

use clap::Clap;
#[derive(Clap, Debug)]
#[clap(name = "basic")]
struct Opt {
#[clap(short, arg_enum)]
opts: bool,
}
fn main() {
let opt = Opt::parse();
println!("{:?}", opt);
}