From 59d863f6f4d8a6a06ad9cd6efccb47c8c8f1ea1d Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 9 May 2017 20:31:30 -0400 Subject: [PATCH] Use crate metadata in --help string (#197) --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 3d6d7da..4914fa8 100644 --- a/src/app.rs +++ b/src/app.rs @@ -90,8 +90,8 @@ fn edit>(path: P) -> ! { pub fn app() { let matches = App::new("just") .version(concat!("v", env!("CARGO_PKG_VERSION"))) - .author("Casey Rodarmor ") - .about("Just a command runner - https://github.com/casey/just") + .author(env!("CARGO_PKG_AUTHORS")) + .about(concat!(env!("CARGO_PKG_DESCRIPTION"), " - ", env!("CARGO_PKG_HOMEPAGE"))) .setting(AppSettings::ColoredHelp) .arg(Arg::with_name("ARGUMENTS") .multiple(true)