Use crate_description and crate_name Clap macros
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use clap::{crate_version, App, Arg};
|
||||
use clap::{crate_description, crate_name, crate_version, App, Arg};
|
||||
use solana_vote_signer::rpc::VoteSignerRpcService;
|
||||
use std::error;
|
||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
||||
@@ -9,7 +9,8 @@ pub const RPC_PORT: u16 = 8989;
|
||||
fn main() -> Result<(), Box<error::Error>> {
|
||||
solana_metrics::set_panic_hook("vote-signer");
|
||||
|
||||
let matches = App::new("vote-signer")
|
||||
let matches = App::new(crate_name!())
|
||||
.about(crate_description!())
|
||||
.version(crate_version!())
|
||||
.arg(
|
||||
Arg::with_name("port")
|
||||
|
Reference in New Issue
Block a user