Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 32993b2

Browse files
v1.16: cli: Hides the filler accounts args (backport of #34113) (#34116)
cli: Hides the filler accounts args (#34113) (cherry picked from commit b4c652e) Co-authored-by: Brooks <[email protected]>
1 parent bbc71be commit 32993b2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ledger-tool/src/main.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1121,15 +1121,17 @@ fn main() {
11211121
.validator(is_parsable::<usize>)
11221122
.takes_value(true)
11231123
.default_value("0")
1124-
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness.");
1124+
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness.")
1125+
.hidden(hidden_unless_forced());
11251126
let accounts_filler_size = Arg::with_name("accounts_filler_size")
11261127
.long("accounts-filler-size")
11271128
.value_name("BYTES")
11281129
.validator(is_parsable::<usize>)
11291130
.takes_value(true)
11301131
.default_value("0")
11311132
.requires("accounts_filler_count")
1132-
.help("Size per filler account in bytes.");
1133+
.help("Size per filler account in bytes.")
1134+
.hidden(hidden_unless_forced());
11331135
let account_paths_arg = Arg::with_name("account_paths")
11341136
.long("accounts")
11351137
.value_name("PATHS")

validator/src/cli.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1280,15 +1280,17 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
12801280
.validator(is_parsable::<usize>)
12811281
.takes_value(true)
12821282
.default_value(&default_args.accounts_filler_count)
1283-
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness."))
1283+
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness.")
1284+
.hidden(hidden_unless_forced()))
12841285
.arg(Arg::with_name("accounts_filler_size")
12851286
.long("accounts-filler-size")
12861287
.value_name("BYTES")
12871288
.validator(is_parsable::<usize>)
12881289
.takes_value(true)
12891290
.default_value(&default_args.accounts_filler_size)
12901291
.requires("accounts_filler_count")
1291-
.help("Size per filler account in bytes."))
1292+
.help("Size per filler account in bytes.")
1293+
.hidden(hidden_unless_forced()))
12921294
.arg(
12931295
Arg::with_name("accounts_db_test_hash_calculation")
12941296
.long("accounts-db-test-hash-calculation")

0 commit comments

Comments
 (0)