From 59d3a03487df675f0c321ac450223b89ab6927d6 Mon Sep 17 00:00:00 2001 From: Bo QIU <35757521+boqiu@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:54:13 +0800 Subject: [PATCH] Hotfix for cli default value (#118) --- node/src/cli/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/node/src/cli/mod.rs b/node/src/cli/mod.rs index 738e79c..08e824d 100644 --- a/node/src/cli/mod.rs +++ b/node/src/cli/mod.rs @@ -3,11 +3,10 @@ use clap::{arg, command, Command}; pub fn cli_app<'a>() -> Command<'a> { command!() .arg(arg!(-c --config "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) }