mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 21:27:12 +00:00
Migrate validator client to clap derive (#6300)
Partially #5900 Migrate the validator client cli to clap derive
This commit is contained in:
@@ -4,7 +4,6 @@ pub mod recover;
|
||||
|
||||
use crate::WALLETS_DIR_FLAG;
|
||||
use clap::{Arg, ArgAction, ArgMatches, Command};
|
||||
use clap_utils::FLAG_HEADER;
|
||||
use directory::{parse_path_or_default_with_flag, DEFAULT_WALLET_DIR};
|
||||
use std::fs::create_dir_all;
|
||||
use std::path::PathBuf;
|
||||
@@ -15,16 +14,6 @@ pub fn cli_app() -> Command {
|
||||
Command::new(CMD)
|
||||
.about("Manage wallets, from which validator keys can be derived.")
|
||||
.display_order(0)
|
||||
.arg(
|
||||
Arg::new("help")
|
||||
.long("help")
|
||||
.short('h')
|
||||
.help("Prints help information")
|
||||
.action(ArgAction::HelpLong)
|
||||
.display_order(0)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.global(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new(WALLETS_DIR_FLAG)
|
||||
.long(WALLETS_DIR_FLAG)
|
||||
|
||||
Reference in New Issue
Block a user