From 21cd3b1cbf28fef80141f8692e6c2c509ab9c9aa Mon Sep 17 00:00:00 2001 From: brooks Date: Wed, 20 Sep 2023 15:43:08 -0400 Subject: [PATCH 1/2] Adds default info to cli arg for --accounts-hash-cache-path --- ledger-tool/src/main.rs | 5 ++++- validator/src/cli.rs | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 10ef5c24665bfa..ae4f55c67de946 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -1150,7 +1150,10 @@ fn main() { .long("accounts-hash-cache-path") .value_name("PATH") .takes_value(true) - .help("Use PATH as accounts hash cache location"); + .help("Use PATH as accounts hash cache location") + .long_help( + "Use PATH as accounts hash cache location [default: /accounts_hash_cache]", + ); let accounts_index_path_arg = Arg::with_name("accounts_index_path") .long("accounts-index-path") .value_name("PATH") diff --git a/validator/src/cli.rs b/validator/src/cli.rs index 1fbe16cec77639..a57a9b9e78589d 100644 --- a/validator/src/cli.rs +++ b/validator/src/cli.rs @@ -293,7 +293,8 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { .long("accounts-hash-cache-path") .value_name("PATH") .takes_value(true) - .help("Use PATH as accounts hash cache location"), + .help("Use PATH as accounts hash cache location") + .long_help("Use PATH as accounts hash cache location [default: /accounts_hash_cache]"), ) .arg( Arg::with_name("snapshots") From 8a81ce0a2c4f30ba79c2df7b62b84f388ce5a06c Mon Sep 17 00:00:00 2001 From: brooks Date: Wed, 20 Sep 2023 17:43:27 -0500 Subject: [PATCH 2/2] pr: use `help` instead of `long_help` --- ledger-tool/src/main.rs | 5 +---- validator/src/cli.rs | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index ae4f55c67de946..d9cab04f24c5f6 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -1150,10 +1150,7 @@ fn main() { .long("accounts-hash-cache-path") .value_name("PATH") .takes_value(true) - .help("Use PATH as accounts hash cache location") - .long_help( - "Use PATH as accounts hash cache location [default: /accounts_hash_cache]", - ); + .help("Use PATH as accounts hash cache location [default: /accounts_hash_cache]"); let accounts_index_path_arg = Arg::with_name("accounts_index_path") .long("accounts-index-path") .value_name("PATH") diff --git a/validator/src/cli.rs b/validator/src/cli.rs index a57a9b9e78589d..ce5bcd3b2809dc 100644 --- a/validator/src/cli.rs +++ b/validator/src/cli.rs @@ -293,8 +293,7 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { .long("accounts-hash-cache-path") .value_name("PATH") .takes_value(true) - .help("Use PATH as accounts hash cache location") - .long_help("Use PATH as accounts hash cache location [default: /accounts_hash_cache]"), + .help("Use PATH as accounts hash cache location [default: /accounts_hash_cache]"), ) .arg( Arg::with_name("snapshots")