diff --git a/substrate/cli/src/lib.rs b/substrate/cli/src/lib.rs index 9b3c1ca44d307..979085a6f48c2 100644 --- a/substrate/cli/src/lib.rs +++ b/substrate/cli/src/lib.rs @@ -44,7 +44,6 @@ extern crate exit_future; #[macro_use] extern crate lazy_static; -#[macro_use] extern crate clap; #[macro_use] extern crate error_chain; @@ -171,7 +170,7 @@ where ); let yaml = &clap::YamlLoader::load_from_str(&yaml).expect("Invalid yml file")[0]; let matches = match clap::App::from_yaml(yaml) - .version(&(crate_version!().to_owned() + "\n")[..]) + .version(format!("{} {}\n", version.version, version.commit).as_str()) .get_matches_from_safe(args) { Ok(m) => m, Err(e) => e.exit(),