From e1de30bd648f77e48f84cb2077bed613b7af321e Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 20 Nov 2019 11:25:16 +1100 Subject: [PATCH] Clean CLI arguments (#609) --- lighthouse/src/main.rs | 1 - validator_client/src/cli.rs | 35 ----------------------------------- 2 files changed, 36 deletions(-) diff --git a/lighthouse/src/main.rs b/lighthouse/src/main.rs index 9125e9802a..5ad7a2bf8a 100644 --- a/lighthouse/src/main.rs +++ b/lighthouse/src/main.rs @@ -30,7 +30,6 @@ fn main() { .value_name("TITLE") .help("Specifies the default eth2 spec type. Only effective when creating a new datadir.") .takes_value(true) - .required(true) .possible_values(&["mainnet", "minimal", "interop"]) .global(true) .default_value("minimal") diff --git a/validator_client/src/cli.rs b/validator_client/src/cli.rs index 623d1b349b..ef8c4ee181 100644 --- a/validator_client/src/cli.rs +++ b/validator_client/src/cli.rs @@ -15,31 +15,6 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> { .help("Data directory for keys and databases.") .takes_value(true), ) - .arg( - Arg::with_name("logfile") - .long("logfile") - .value_name("logfile") - .help("File path where output will be written.") - .takes_value(true), - ) - .arg( - Arg::with_name("spec") - .long("spec") - .value_name("TITLE") - .help("Specifies the default eth2 spec type.") - .takes_value(true) - .possible_values(&["mainnet", "minimal", "interop"]) - .conflicts_with("eth2-config") - .global(true) - ) - .arg( - Arg::with_name("eth2-config") - .long("eth2-config") - .short("e") - .value_name("TOML_FILE") - .help("Path to Ethereum 2.0 config and specification file (e.g., eth2_spec.toml).") - .takes_value(true), - ) .arg( Arg::with_name("server") .long("server") @@ -66,16 +41,6 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> { .default_value(DEFAULT_SERVER_HTTP_PORT) .takes_value(true), ) - .arg( - Arg::with_name("debug-level") - .long("debug-level") - .value_name("LEVEL") - .short("s") - .help("The title of the spec constants for chain config.") - .takes_value(true) - .possible_values(&["info", "debug", "trace", "warn", "error", "crit"]) - .default_value("trace"), - ) /* * The "testnet" sub-command. *