clap/tests/derive_ui/skip_with_other_options.rs
2023-05-04 15:58:04 -04:00

15 lines
221 B
Rust

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