mirror of
https://github.com/clap-rs/clap
synced 2025-01-07 10:18:48 +00:00
16 lines
218 B
Rust
16 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);
|
||
|
}
|