clap/examples/tutorial_builder/03_01_flag_count.rs
2022-02-15 08:54:59 -06:00

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"));
}