Use crate metadata in --help string (#197)

This commit is contained in:
Casey Rodarmor 2017-05-09 20:31:30 -04:00 committed by GitHub
parent b84fa89d71
commit 59d863f6f4

View File

@ -90,8 +90,8 @@ fn edit<P: convert::AsRef<ffi::OsStr>>(path: P) -> ! {
pub fn app() {
let matches = App::new("just")
.version(concat!("v", env!("CARGO_PKG_VERSION")))
.author("Casey Rodarmor <casey@rodarmor.com>")
.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)