aboutsummaryrefslogtreecommitdiff
path: root/clap/examples/19_auto_authors.rs
blob: afbb9853b941814b522fc02efb08728bb1bda26d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_use]
extern crate clap;

use clap::App;

fn main() {
    App::new("myapp")
        .about("does awesome things")
       // use crate_authors! to pull the author(s) names from the Cargo.toml
       .author(crate_authors!())
       .get_matches();

    // running this app with -h will display whatever author(s) are in your
    // Cargo.toml
}