diff --git a/CHANGELOG.md b/CHANGELOG.md index 008576c8bd..4d0c794e62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,8 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/ mode of operation when the download/bootstrapping finishes. - Node CLI: + - the help text now documents the accepted values and defaults of the constrained + options (`--storage-backend`, `--node-type`, `--rpc-bind-address`, `--rpc-enabled`). - boolean node options now require an explicit `true`/`false` value (e.g. `--enable-db-reckless-mode-in-ibd true`) instead of working as value-less flags; the corresponding environment variables (`ML_NODE_*` for top-level options and diff --git a/node-lib/src/options.rs b/node-lib/src/options.rs index f79d3c5797..b1524ebc9d 100644 --- a/node-lib/src/options.rs +++ b/node-lib/src/options.rs @@ -344,10 +344,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, @@ -489,10 +493,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 = "true|false", action = clap::ArgAction::Set)] pub rpc_enabled: Option,