mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-19 02:04:13 +00:00
Rename CLI flag
This commit is contained in:
parent
b58aa1d148
commit
bab1f2b064
@ -76,10 +76,10 @@ fn process_testnet_subcommand(
|
|||||||
builder.update_spec_from_subcommand(&cli_args)?;
|
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
|
let path = path_string
|
||||||
.parse::<PathBuf>()
|
.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)?;
|
builder.load_client_config(path)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,8 +209,8 @@ fn main() {
|
|||||||
.conflicts_with("spec")
|
.conflicts_with("spec")
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("config")
|
Arg::with_name("client-config")
|
||||||
.long("config")
|
.long("client-config")
|
||||||
.value_name("TOML_FILE")
|
.value_name("TOML_FILE")
|
||||||
.help("An existing beacon_node TOML file (e.g., beacon_node.toml).")
|
.help("An existing beacon_node TOML file (e.g., beacon_node.toml).")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
|
Loading…
Reference in New Issue
Block a user