1
1
mirror of https://github.com/casey/just.git synced 2024-12-18 07:21:34 +03:00

Get package name from Cargo.toml (#315)

This commit is contained in:
Casey Rodarmor 2018-05-01 17:01:59 -04:00 committed by GitHub
parent c0f8dfbc89
commit a3294822c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ impl Slurp for fs::File {
}
pub fn run() {
let matches = App::new("just")
let matches = App::new(env!("CARGO_PKG_NAME"))
.version(concat!("v", env!("CARGO_PKG_VERSION")))
.author(env!("CARGO_PKG_AUTHORS"))
.about(concat!(env!("CARGO_PKG_DESCRIPTION"), " - ", env!("CARGO_PKG_HOMEPAGE")))