mirror of
https://github.com/clap-rs/clap
synced 2025-01-09 03:08:45 +00:00
7 lines
180 B
Rust
7 lines
180 B
Rust
use clap::{arg, command};
|
|
|
|
fn main() {
|
|
let matches = command!().arg(arg!(-v --verbose ...)).get_matches();
|
|
|
|
println!("verbose: {:?}", matches.occurrences_of("verbose"));
|
|
}
|