Skip to content

Commit

Permalink
v1.16: cli: Hides the filler accounts args (backport of #34113) (#34116)
Browse files Browse the repository at this point in the history
cli: Hides the filler accounts args (#34113)

(cherry picked from commit b4c652e)

Co-authored-by: Brooks <[email protected]>
  • Loading branch information
mergify[bot] and brooksprumo authored Nov 16, 2023
1 parent bbc71be commit 32993b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,15 +1121,17 @@ fn main() {
.validator(is_parsable::<usize>)
.takes_value(true)
.default_value("0")
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness.");
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness.")
.hidden(hidden_unless_forced());
let accounts_filler_size = Arg::with_name("accounts_filler_size")
.long("accounts-filler-size")
.value_name("BYTES")
.validator(is_parsable::<usize>)
.takes_value(true)
.default_value("0")
.requires("accounts_filler_count")
.help("Size per filler account in bytes.");
.help("Size per filler account in bytes.")
.hidden(hidden_unless_forced());
let account_paths_arg = Arg::with_name("account_paths")
.long("accounts")
.value_name("PATHS")
Expand Down
6 changes: 4 additions & 2 deletions validator/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,15 +1280,17 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
.validator(is_parsable::<usize>)
.takes_value(true)
.default_value(&default_args.accounts_filler_count)
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness."))
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness.")
.hidden(hidden_unless_forced()))
.arg(Arg::with_name("accounts_filler_size")
.long("accounts-filler-size")
.value_name("BYTES")
.validator(is_parsable::<usize>)
.takes_value(true)
.default_value(&default_args.accounts_filler_size)
.requires("accounts_filler_count")
.help("Size per filler account in bytes."))
.help("Size per filler account in bytes.")
.hidden(hidden_unless_forced()))
.arg(
Arg::with_name("accounts_db_test_hash_calculation")
.long("accounts-db-test-hash-calculation")
Expand Down

0 comments on commit 32993b2

Please sign in to comment.