mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
16 lines
208 B
Rust
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);
|
|
}
|