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

move version out of yaml and let it populate dynamically from package info #26

Merged
merged 1 commit into from
Dec 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <admin@polkadot.io>"
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