clap/tests/derive_ui/skip_with_other_options.rs
Ed Page b190a6a817 test: Consolidate clap tests
This reduces the need for us to have `clap` as a dependency in
`clap_derive`, preparing the way to fix #15.
2021-11-30 10:07:08 -06:00

15 lines
222 B
Rust

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