Skip to content

Commit

Permalink
add version to clap app settings (vault713#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravidio committed Feb 5, 2019
1 parent ed13752 commit a6817c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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=<config-path> 'the path to the config file'"))
.arg(Arg::from_usage("[log-config-path] -l, --log-config-path=<log-config-path> 'the path to the log config file'"))
.arg(Arg::from_usage("[account] -a, --account=<account> 'the account to use'"))
Expand Down

0 comments on commit a6817c1

Please sign in to comment.