clap/examples/19_auto_authors.rs
2018-11-14 12:05:06 -05:00

15 lines
354 B
Rust

#[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
}