mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
14 lines
194 B
Rust
14 lines
194 B
Rust
|
use clap::Clap;
|
||
|
|
||
|
#[derive(Clap, Debug)]
|
||
|
#[clap(name = "basic")]
|
||
|
struct Opt {
|
||
|
#[clap(short, arg_enum)]
|
||
|
opts: bool,
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let opt = Opt::parse();
|
||
|
println!("{:?}", opt);
|
||
|
}
|