Skip to content
Snippets Groups Projects
Commit d17dcc18 authored by Guanqun Lu's avatar Guanqun Lu Committed by asynchronous rob
Browse files

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

parent db78e5fb
No related merge requests found
name: polkadot
version: "1.0.0"
author: "Parity Team <admin@polkadot.io>"
about: Polkadot Node Rust Implementation
args:
......
......@@ -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("");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment