clap/examples/tutorial_builder/03_01_flag_count.rs

8 lines
194 B
Rust
Raw Normal View History

use clap::{app_from_crate, arg};
fn main() {
let matches = app_from_crate!().arg(arg!(-v --verbose ...)).get_matches();
println!("verbose: {:?}", matches.occurrences_of("verbose"));
}