mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
15 lines
216 B
Rust
15 lines
216 B
Rust
|
use clap::Parser;
|
||
|
|
||
|
#[derive(Parser)]
|
||
|
#[clap(author, version, about)]
|
||
|
struct Cli {
|
||
|
#[clap(short, long)]
|
||
|
verbose: bool,
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let cli = Cli::parse();
|
||
|
|
||
|
println!("verbose: {:?}", cli.verbose);
|
||
|
}
|