From b4c652ef6c367bc361b1578d36ce28308c9d2ff1 Mon Sep 17 00:00:00 2001 From: Brooks Date: Thu, 16 Nov 2023 12:58:52 -0500 Subject: [PATCH] cli: Hides the filler accounts args (#34113) --- ledger-tool/src/main.rs | 6 ++++-- validator/src/cli.rs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 33031e9d14a0a5..a6b34d39d63e76 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -1140,7 +1140,8 @@ fn main() { .validator(is_parsable::) .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") @@ -1148,7 +1149,8 @@ fn main() { .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") diff --git a/validator/src/cli.rs b/validator/src/cli.rs index 364195e3083cd1..34b7359b2f1eef 100644 --- a/validator/src/cli.rs +++ b/validator/src/cli.rs @@ -1285,7 +1285,8 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { .validator(is_parsable::) .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") @@ -1293,7 +1294,8 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { .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")