Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
move version out of yaml and let it populate dynamically from package…
Browse files Browse the repository at this point in the history
… info (#26)
  • Loading branch information
Guanqun Lu authored and rphmeier committed Dec 4, 2017
1 parent 2ae6751 commit 86b1798
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cli/src/cli.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: polkadot
version: "1.0.0"
author: "Parity Team <[email protected]>"
about: Polkadot Node Rust Implementation
args:
Expand Down
2 changes: 1 addition & 1 deletion cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down

0 comments on commit 86b1798

Please sign in to comment.