clap/examples/19_auto_authors.rs
2020-02-03 12:01:36 -05:00

12 lines
338 B
Rust

use clap::{crate_authors, 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
}