1
2
3
4
5
6
7
use clap::{app_from_crate, arg};

fn main() {
    let matches = app_from_crate!().arg(arg!(-v - -verbose)).get_matches();

    println!("verbose: {:?}", matches.is_present("verbose"));
}