Skip to content
Snippets Groups Projects
Commit 651c2114 authored by Gav Wood's avatar Gav Wood Committed by asynchronous rob
Browse files

Newline after version (#248)

parent e6995cc9
No related merge requests found
......@@ -126,12 +126,12 @@ pub fn run<I, T>(args: I) -> error::Result<()> where
let core = reactor::Core::new().expect("tokio::Core could not be created");
let yaml = load_yaml!("./cli.yml");
let matches = match clap::App::from_yaml(yaml).version(crate_version!()).get_matches_from_safe(args) {
let matches = match clap::App::from_yaml(yaml).version(&(crate_version!().to_owned() + "\n")[..]).get_matches_from_safe(args) {
Ok(m) => m,
Err(ref e) if e.kind == clap::ErrorKind::VersionDisplayed => return Ok(()),
Err(ref e) if e.kind == clap::ErrorKind::HelpDisplayed || e.kind == clap::ErrorKind::VersionDisplayed => {
Err(ref e) if e.kind == clap::ErrorKind::HelpDisplayed => {
let _ = clap::App::from_yaml(yaml).print_long_help();
return Ok(());
return Ok(())
}
Err(e) => return Err(e.into()),
};
......
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