mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +00:00
Add long names to lcli clap
This commit is contained in:
@@ -10,7 +10,7 @@ pub const DEFAULT_DATA_DIR: &str = ".lighthouse/testnet";
|
|||||||
|
|
||||||
pub fn run<T: EthSpec>(mut env: Environment<T>, matches: &ArgMatches) -> Result<(), String> {
|
pub fn run<T: EthSpec>(mut env: Environment<T>, matches: &ArgMatches) -> Result<(), String> {
|
||||||
let min_genesis_time = matches
|
let min_genesis_time = matches
|
||||||
.value_of("min_genesis_time")
|
.value_of("min-genesis-time")
|
||||||
.ok_or_else(|| "min_genesis_time not specified")?
|
.ok_or_else(|| "min_genesis_time not specified")?
|
||||||
.parse::<u64>()
|
.parse::<u64>()
|
||||||
.map_err(|e| format!("Failed to parse min_genesis_time: {}", e))?;
|
.map_err(|e| format!("Failed to parse min_genesis_time: {}", e))?;
|
||||||
|
|||||||
@@ -119,13 +119,15 @@ fn main() {
|
|||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("output")
|
Arg::with_name("output")
|
||||||
.short("o")
|
.short("o")
|
||||||
|
.long("output")
|
||||||
.value_name("PATH")
|
.value_name("PATH")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("The output directory. Defaults to ~/.lighthouse/testnet"),
|
.help("The output directory. Defaults to ~/.lighthouse/testnet"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("min_genesis_time")
|
Arg::with_name("min-genesis-time")
|
||||||
.short("t")
|
.short("t")
|
||||||
|
.long("min-genesis-time")
|
||||||
.value_name("UNIX_EPOCH_SECONDS")
|
.value_name("UNIX_EPOCH_SECONDS")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.default_value("0")
|
.default_value("0")
|
||||||
@@ -134,6 +136,7 @@ fn main() {
|
|||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("endpoint")
|
Arg::with_name("endpoint")
|
||||||
.short("e")
|
.short("e")
|
||||||
|
.long("endpoint")
|
||||||
.value_name("HTTP_SERVER")
|
.value_name("HTTP_SERVER")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.default_value("http://localhost:8545")
|
.default_value("http://localhost:8545")
|
||||||
@@ -142,6 +145,7 @@ fn main() {
|
|||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("confirmations")
|
Arg::with_name("confirmations")
|
||||||
.value_name("INTEGER")
|
.value_name("INTEGER")
|
||||||
|
.long("confirmations")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.default_value("3")
|
.default_value("3")
|
||||||
.help("The number of block confirmations before declaring the contract deployed."),
|
.help("The number of block confirmations before declaring the contract deployed."),
|
||||||
|
|||||||
Reference in New Issue
Block a user