Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

add version to clap app settings #121

Merged
merged 1 commit into from
Feb 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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