diff --git a/src/bin/bench-tps.rs b/src/bin/bench-tps.rs index 0f60b6181d..7ca49d9ff8 100644 --- a/src/bin/bench-tps.rs +++ b/src/bin/bench-tps.rs @@ -1,4 +1,5 @@ extern crate bincode; +#[macro_use] extern crate clap; extern crate influx_db_client; extern crate rayon; @@ -377,6 +378,7 @@ fn main() { let mut tx_count = 500_000; let matches = App::new("solana-bench-tps") + .version(crate_version!()) .arg( Arg::with_name("leader") .short("l") diff --git a/src/bin/drone.rs b/src/bin/drone.rs index 04c874b6c0..7737777b67 100644 --- a/src/bin/drone.rs +++ b/src/bin/drone.rs @@ -1,4 +1,5 @@ extern crate bincode; +#[macro_use] extern crate clap; extern crate serde_json; extern crate solana; @@ -26,6 +27,7 @@ fn main() { logger::setup(); set_panic_hook("drone"); let matches = App::new("drone") + .version(crate_version!()) .arg( Arg::with_name("leader") .short("l") diff --git a/src/bin/fullnode-config.rs b/src/bin/fullnode-config.rs index 2e8235c1bf..b2541a041b 100644 --- a/src/bin/fullnode-config.rs +++ b/src/bin/fullnode-config.rs @@ -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") diff --git a/src/bin/fullnode.rs b/src/bin/fullnode.rs index fea2ce4439..05d13bfe2c 100644 --- a/src/bin/fullnode.rs +++ b/src/bin/fullnode.rs @@ -1,3 +1,4 @@ +#[macro_use] extern crate clap; extern crate getopts; extern crate log; @@ -23,6 +24,7 @@ fn main() -> () { logger::setup(); set_panic_hook("fullnode"); let matches = App::new("fullnode") + .version(crate_version!()) .arg( Arg::with_name("identity") .short("i") diff --git a/src/bin/genesis.rs b/src/bin/genesis.rs index c51a059a5f..787a7ef646 100644 --- a/src/bin/genesis.rs +++ b/src/bin/genesis.rs @@ -16,6 +16,7 @@ use std::process::exit; fn main() -> Result<(), Box> { let matches = App::new("solana-genesis") + .version(crate_version!()) .arg( Arg::with_name("tokens") .short("t") diff --git a/src/bin/keygen.rs b/src/bin/keygen.rs index 6974ced7b4..222a6f0e40 100644 --- a/src/bin/keygen.rs +++ b/src/bin/keygen.rs @@ -1,3 +1,4 @@ +#[macro_use] extern crate clap; extern crate dirs; extern crate ring; @@ -13,6 +14,7 @@ use std::path::Path; fn main() -> Result<(), Box> { let matches = App::new("solana-keygen") + .version(crate_version!()) .arg( Arg::with_name("outfile") .short("o") diff --git a/src/bin/ledger-tool.rs b/src/bin/ledger-tool.rs index 50e6a7db35..53502535cb 100644 --- a/src/bin/ledger-tool.rs +++ b/src/bin/ledger-tool.rs @@ -1,3 +1,4 @@ +#[macro_use] extern crate clap; extern crate serde_json; extern crate solana; @@ -12,6 +13,7 @@ use std::process::exit; fn main() { logger::setup(); let matches = App::new("ledger-tool") + .version(crate_version!()) .arg( Arg::with_name("ledger") .short("l") diff --git a/src/bin/wallet.rs b/src/bin/wallet.rs index 859f607433..a9639f1026 100644 --- a/src/bin/wallet.rs +++ b/src/bin/wallet.rs @@ -1,6 +1,7 @@ extern crate atty; extern crate bincode; extern crate bs58; +#[macro_use] extern crate clap; extern crate dirs; extern crate serde_json; @@ -74,6 +75,7 @@ impl Default for WalletConfig { fn parse_args() -> Result> { let matches = App::new("solana-wallet") + .version(crate_version!()) .arg( Arg::with_name("leader") .short("l")