diff --git a/substrate/cli/src/cli.yml b/substrate/cli/src/cli.yml index 7e8221311d63e1b4662967d8f363220b313830e2..a23ba5c2356dad71e216346dad7e3ae232735fda 100644 --- a/substrate/cli/src/cli.yml +++ b/substrate/cli/src/cli.yml @@ -1,5 +1,4 @@ name: polkadot -version: "1.0.0" author: "Parity Team <admin@polkadot.io>" about: Polkadot Node Rust Implementation args: diff --git a/substrate/cli/src/lib.rs b/substrate/cli/src/lib.rs index e1086f8d6c27a986ef219ce50421e3803a460038..dfd708045120829f409ae899bfca323a59ec0d46 100644 --- a/substrate/cli/src/lib.rs +++ b/substrate/cli/src/lib.rs @@ -46,7 +46,7 @@ pub fn run<I, T>(args: I) -> error::Result<()> where T: Into<std::ffi::OsString> + Clone, { let yaml = load_yaml!("./cli.yml"); - let matches = clap::App::from_yaml(yaml).get_matches_from_safe(args)?; + let matches = clap::App::from_yaml(yaml).version(crate_version!()).get_matches_from_safe(args)?; // TODO [ToDr] Split paremeters parsing from actual execution. let log_pattern = matches.value_of("log").unwrap_or("");