clap/clap_derive/tests/ui/skip_with_other_options.rs
2020-01-18 17:40:07 +05:30

15 lines
218 B
Rust

use clap::Clap;
#[derive(Clap, Debug)]
#[clap(name = "test")]
pub struct Opt {
#[clap(long)]
a: u32,
#[clap(skip, long)]
b: u32,
}
fn main() {
let opt = Opt::parse();
println!("{:?}", opt);
}