From a3294822c375a0d3099476e11d9c80ae5affff4c Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 1 May 2018 17:01:59 -0400 Subject: [PATCH] Get package name from Cargo.toml (#315) --- src/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.rs b/src/run.rs index 34e838c..9b45cd7 100644 --- a/src/run.rs +++ b/src/run.rs @@ -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")))