Hotfix for cli default value (#118)

This commit is contained in:
Bo QIU 2024-07-11 11:54:13 +08:00 committed by GitHub
parent 727a9b8bb6
commit 59d3a03487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,11 +3,10 @@ use clap::{arg, command, Command};
pub fn cli_app<'a>() -> Command<'a> {
command!()
.arg(arg!(-c --config <FILE> "Sets a custom config file"))
.arg(arg!(--"miner-key" [KEY] "Sets miner private key"))
.arg(arg!(--"miner-key" [KEY] "Sets miner private key (Default: None)"))
.arg(
arg!(--"blockchain-rpc-endpoint" [URL] "Sets blockchain RPC endpoint")
.default_value("http://127.0.0.1:8545"),
arg!(--"blockchain-rpc-endpoint" [URL] "Sets blockchain RPC endpoint (Default: http://127.0.0.1:8545)")
)
.arg(arg!(--"db-max-num-chunks" [NUM] "Sets the max number of chunks to store in db"))
.arg(arg!(--"db-max-num-chunks" [NUM] "Sets the max number of chunks to store in db (Default: None)"))
.allow_external_subcommands(true)
}