Change name of VC CLI param
This commit is contained in:
parent
059699736b
commit
b9e832216b
@ -40,13 +40,12 @@ fn main() {
|
|||||||
.takes_value(true),
|
.takes_value(true),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("eth-config")
|
Arg::with_name("eth2-spec")
|
||||||
.long("eth-config")
|
.long("eth2-spec")
|
||||||
.short("e")
|
.short("e")
|
||||||
.value_name("DIR")
|
.value_name("TOML_FILE")
|
||||||
.help(&format!("Directory containing {}.", ETH2_CONFIG_FILENAME))
|
.help("Path to Ethereum 2.0 specifications file.")
|
||||||
.takes_value(true)
|
.takes_value(true),
|
||||||
.default_value(ETH2_CONFIG_FILENAME),
|
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("server")
|
Arg::with_name("server")
|
||||||
@ -111,7 +110,7 @@ fn main() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let eth2_config_path: PathBuf = matches
|
let eth2_config_path: PathBuf = matches
|
||||||
.value_of("eth-config")
|
.value_of("eth2-spec")
|
||||||
.and_then(|s| Some(PathBuf::from(s)))
|
.and_then(|s| Some(PathBuf::from(s)))
|
||||||
.unwrap_or_else(|| data_dir.join(ETH2_CONFIG_FILENAME));
|
.unwrap_or_else(|| data_dir.join(ETH2_CONFIG_FILENAME));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user