Rename CLI flag

This commit is contained in:
Paul Hauner 2019-08-26 15:51:11 +10:00
parent b58aa1d148
commit bab1f2b064
No known key found for this signature in database
GPG Key ID: 5E2CFF9B75FA63DF
2 changed files with 4 additions and 4 deletions

View File

@ -76,10 +76,10 @@ fn process_testnet_subcommand(
builder.update_spec_from_subcommand(&cli_args)?;
}
if let Some(path_string) = cli_args.value_of("config") {
if let Some(path_string) = cli_args.value_of("client-config") {
let path = path_string
.parse::<PathBuf>()
.map_err(|e| format!("Unable to parse config path: {:?}", e))?;
.map_err(|e| format!("Unable to parse client config path: {:?}", e))?;
builder.load_client_config(path)?;
}

View File

@ -209,8 +209,8 @@ fn main() {
.conflicts_with("spec")
)
.arg(
Arg::with_name("config")
.long("config")
Arg::with_name("client-config")
.long("client-config")
.value_name("TOML_FILE")
.help("An existing beacon_node TOML file (e.g., beacon_node.toml).")
.takes_value(true)