aboutsummaryrefslogtreecommitdiff
path: root/structopt/tests/ui/skip_with_other_options.rs
blob: 73c53420cbce30eab4cf2feff6d3c01675f336e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use structopt::StructOpt;

#[derive(StructOpt, Debug)]
#[structopt(name = "test")]
pub struct Opt {
    #[structopt(long)]
    a: u32,
    #[structopt(skip, long)]
    b: u32,
}

fn main() {
    let opt = Opt::from_args();
    println!("{:?}", opt);
}