Support -V/--version on all CLI apps
All CLI apps that use clap (in other words, except for bench-streamer) can use crate_version! to take the version from Cargo.toml. This change addresses #700.
This commit is contained in:
committed by
Michael Vines
parent
5dc7177540
commit
efc72b9572
@@ -1,3 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
extern crate dirs;
|
||||
extern crate serde_json;
|
||||
@@ -13,6 +14,7 @@ use std::net::SocketAddr;
|
||||
|
||||
fn main() {
|
||||
let matches = App::new("fullnode-config")
|
||||
.version(crate_version!())
|
||||
.arg(
|
||||
Arg::with_name("local")
|
||||
.short("l")
|
||||
|
Reference in New Issue
Block a user