mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
15 lines
No EOL
358 B
Rust
15 lines
No EOL
358 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 the this app with the -h will display whatever author(s) are in your
|
|
// Cargo.toml
|
|
} |