From f1ccfe48af977b6ab2e043f21717024a62fafc61 Mon Sep 17 00:00:00 2001 From: ravidio Date: Tue, 5 Feb 2019 07:38:41 +0000 Subject: [PATCH] add version to clap app settings --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cfa11e02..60d914db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,9 +3,9 @@ #[macro_use] extern crate log; #[macro_use] extern crate serde_json; #[macro_use] extern crate gotham_derive; +#[macro_use] extern crate clap; extern crate failure; extern crate serde; -extern crate clap; extern crate colored; extern crate ws; extern crate futures; @@ -388,6 +388,7 @@ impl Helper for EditorHelper {} fn main() { let matches = App::new("wallet713") + .version(crate_version!()) .arg(Arg::from_usage("[config-path] -c, --config= 'the path to the config file'")) .arg(Arg::from_usage("[log-config-path] -l, --log-config-path= 'the path to the log config file'")) .arg(Arg::from_usage("[account] -a, --account= 'the account to use'"))