From 9a914f02fb60056fd0934168c1a715b55fe1fbaa Mon Sep 17 00:00:00 2001 From: jeff washington Date: Tue, 14 Mar 2023 11:47:59 -0500 Subject: [PATCH] move arg to get_deprecated_arguments --- validator/src/cli.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/validator/src/cli.rs b/validator/src/cli.rs index e7ff437300ebfd..75c13471319353 100644 --- a/validator/src/cli.rs +++ b/validator/src/cli.rs @@ -1185,12 +1185,6 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { .help("Debug option to scan all append vecs and verify account index refcounts prior to clean") .hidden(true) ) - .arg( - Arg::with_name("accounts_db_skip_shrink") - .long("accounts-db-skip-shrink") - .help("This is obsolete since it is now enabled by default. Enables faster starting of validators by skipping startup clean and shrink.") - .hidden(true), - ) .arg( Arg::with_name("accounts_db_create_ancient_storage_packed") .long("accounts-db-create-ancient-storage-packed") @@ -1560,6 +1554,10 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { // avoid breaking validator startup commands fn get_deprecated_arguments() -> Vec> { vec![ + Arg::with_name("accounts_db_skip_shrink") + .long("accounts-db-skip-shrink") + .help("This is obsolete since it is now enabled by default. Enables faster starting of validators by skipping startup clean and shrink.") + .hidden(true), Arg::with_name("accounts_db_caching_enabled") .long("accounts-db-caching-enabled") .hidden(true),