clap/examples/19_auto_authors.rs

16 lines
354 B
Rust
Raw Normal View History

#[macro_use]
extern crate clap;
use clap::App;
fn main() {
App::new("myapp")
.about("does awesome things")
2018-11-14 17:05:06 +00:00
// use crate_authors! to pull the author(s) names from the Cargo.toml
.author(crate_authors!())
.get_matches();
2018-01-11 05:49:40 +00:00
// running this app with -h will display whatever author(s) are in your
// Cargo.toml
2018-01-11 05:49:40 +00:00
}