structopt 0.3.8

Parse command line argument by defining a struct.
Documentation
1
2
3
4
5
6
7
8
9
10
use structopt::StructOpt;

#[derive(StructOpt, Debug)]
struct Opt {
    verbose: bool,
}

fn main() {
    Opt::from_args();
}