From b36bda24fab43cdde98e6827765b6f21646f290f Mon Sep 17 00:00:00 2001 From: Kyle Gretchev Date: Sat, 24 Aug 2019 11:25:04 -0400 Subject: [PATCH] use `clap::crate_version!()` - `crate_version()!` will pull version from Cargo.toml --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 882caaa6a..7f82808e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use std::error::Error; fn main() -> Result<(), Box> { let matches = App::new("nushell") - .version("0.1.3") + .version(clap::crate_version!()) .arg( Arg::with_name("loglevel") .short("l")