From e656e46b2443abe903d6b71fe138599051d84d3d Mon Sep 17 00:00:00 2001 From: Brooks Date: Tue, 20 Feb 2024 13:32:06 -0500 Subject: [PATCH] Makes help's default for `--accounts-index-path` consistent (#35255) --- ledger-tool/src/main.rs | 5 +++-- validator/src/cli.rs | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index ef3f6515d..73bf4127e 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -616,8 +616,9 @@ fn main() { .takes_value(true) .multiple(true) .help( - "Persistent accounts-index location. May be specified multiple times. [default: \ - [ledger]/accounts_index]", + "Persistent accounts-index location. \ + May be specified multiple times. \ + [default: /accounts_index]", ); let accounts_db_test_hash_calculation_arg = Arg::with_name("accounts_db_test_hash_calculation") .long("accounts-db-test-hash-calculation") diff --git a/validator/src/cli.rs b/validator/src/cli.rs index 958cdc4ec..6c16e09d1 100644 --- a/validator/src/cli.rs +++ b/validator/src/cli.rs @@ -1293,9 +1293,11 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> { .value_name("PATH") .takes_value(true) .multiple(true) - .help("Persistent accounts-index location. \ - May be specified multiple times. \ - [default: [ledger]/accounts_index]"), + .help( + "Persistent accounts-index location. \ + May be specified multiple times. \ + [default: /accounts_index]", + ), ) .arg( Arg::with_name("accounts_db_test_hash_calculation")