clap/clap_derive/tests/ui/clap_empty_attr.rs
2020-02-12 23:15:05 +03:00

16 lines
208 B
Rust

use clap::Clap;
#[derive(Clap, Debug)]
#[clap]
struct Opt {}
#[derive(Clap, Debug)]
struct Opt1 {
#[clap = "short"]
foo: u32,
}
fn main() {
let opt = Opt::parse();
println!("{:?}", opt);
}