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); }