Skip to content

Commit e04728f

Browse files
authored
Remove redundant default help text. (#3792)
## Motivation If there is a default value, `clap` automatically adds that to the help text. (See `CLI.md`.) ## Proposal Remove the redundant comment about the default value. ## Test Plan CI ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 2495042 commit e04728f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: CLI.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,10 @@ Start a Local Linera Network
950950
* `--initial-amount <INITIAL_AMOUNT>` — The initial amount of native tokens credited in the initial "root" chains, including the default "admin" chain
951951

952952
Default value: `1000000`
953-
* `--validators <VALIDATORS>` — The number of validators in the local test network. Default is 1
953+
* `--validators <VALIDATORS>` — The number of validators in the local test network
954954

955955
Default value: `1`
956-
* `--shards <SHARDS>` — The number of shards per validator in the local test network. Default is 1
956+
* `--shards <SHARDS>` — The number of shards per validator in the local test network
957957

958958
Default value: `1`
959959
* `--policy-config <POLICY_CONFIG>` — Configure the resource control policy (notably fees) according to pre-defined settings

Diff for: linera-service/src/linera/command.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -880,11 +880,11 @@ pub enum NetCommand {
880880
#[arg(long, default_value = "1000000")]
881881
initial_amount: u128,
882882

883-
/// The number of validators in the local test network. Default is 1.
883+
/// The number of validators in the local test network.
884884
#[arg(long, default_value = "1")]
885885
validators: usize,
886886

887-
/// The number of shards per validator in the local test network. Default is 1.
887+
/// The number of shards per validator in the local test network.
888888
#[arg(long, default_value = "1")]
889889
shards: usize,
890890

0 commit comments

Comments
 (0)