From 1ac12896df0a1cedeb029b1c01ac474bb3ce60f9 Mon Sep 17 00:00:00 2001 From: Oliver Anyanwu Date: Tue, 21 Jul 2026 16:54:02 +0200 Subject: [PATCH] Show possible values and defaults in node help for enum and RPC options The node help did not show which values the constrained options accept or what they default to, so users had to read the source to find out. Document the possible values and defaults for --storage-backend and --node-type, and the defaults for --rpc-bind-address and --rpc-enabled, in their help text. Verified with 'node-daemon mainnet --help'. --- node-lib/src/options.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/node-lib/src/options.rs b/node-lib/src/options.rs index da61692d8..cec6edde7 100644 --- a/node-lib/src/options.rs +++ b/node-lib/src/options.rs @@ -265,10 +265,14 @@ pub struct RunOptions { pub blockprod_use_current_time_if_non_pos: Option, /// Storage backend to use. + /// + /// Possible values: `lmdb`, `inmemory`. Defaults to `lmdb`. #[clap(long)] pub storage_backend: Option, /// The node type. + /// + /// Possible values: `full-node`, `blocks-only-node`. Defaults to `full-node`. #[clap(long)] pub node_type: Option, @@ -402,10 +406,14 @@ pub struct RunOptions { pub max_tip_age: Option, /// Address to bind RPC to. + /// + /// Defaults to `127.0.0.1` with the chain's default RPC port. #[clap(long, value_name = "ADDR")] pub rpc_bind_address: Option, /// Enable/Disable http RPC. + /// + /// Defaults to `true`. #[clap(long, value_name = "VAL")] pub rpc_enabled: Option,