Change name of VC CLI param

This commit is contained in:
Paul Hauner 2019-06-10 21:37:59 -04:00
parent 059699736b
commit b9e832216b
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -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));