Use crate_description and crate_name Clap macros

This commit is contained in:
Michael Vines
2019-03-13 20:54:30 -07:00
parent e58220282a
commit bb420cb995
10 changed files with 29 additions and 20 deletions

View File

@ -1,4 +1,4 @@
use clap::{crate_version, App, Arg};
use clap::{crate_description, crate_name, crate_version, App, Arg};
use log::*;
use solana_drone::drone::{Drone, DRONE_PORT};
use solana_drone::socketaddr;
@ -15,7 +15,8 @@ use tokio_codec::{BytesCodec, Decoder};
fn main() -> Result<(), Box<error::Error>> {
solana_logger::setup();
solana_metrics::set_panic_hook("drone");
let matches = App::new("drone")
let matches = App::new(crate_name!())
.about(crate_description!())
.version(crate_version!())
.arg(
Arg::with_name("keypair")