use clap::crate_version!()

- `crate_version()!` will pull version from Cargo.toml
This commit is contained in:
Kyle Gretchev 2019-08-24 11:25:04 -04:00
parent b7c426e952
commit b36bda24fa

View File

@ -4,7 +4,7 @@ use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
let matches = App::new("nushell")
.version("0.1.3")
.version(clap::crate_version!())
.arg(
Arg::with_name("loglevel")
.short("l")