List the default value for `--accounts` in CLI help (#35254)

This commit is contained in:
steviez 2024-02-20 13:12:41 -06:00 committed by GitHub
parent d88b7d95b1
commit a1c39a3c22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -604,7 +604,11 @@ fn main() {
.long("accounts") .long("accounts")
.value_name("PATHS") .value_name("PATHS")
.takes_value(true) .takes_value(true)
.help("Comma separated persistent accounts location"); .help(
"Persistent accounts location. \
May be specified multiple times. \
[default: <LEDGER>/accounts]",
);
let accounts_hash_cache_path_arg = Arg::with_name("accounts_hash_cache_path") let accounts_hash_cache_path_arg = Arg::with_name("accounts_hash_cache_path")
.long("accounts-hash-cache-path") .long("accounts-hash-cache-path")
.value_name("PATH") .value_name("PATH")

View File

@ -276,7 +276,10 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
.value_name("PATHS") .value_name("PATHS")
.takes_value(true) .takes_value(true)
.multiple(true) .multiple(true)
.help("Comma separated persistent accounts location"), .help("Comma separated persistent accounts location. \
May be specified multiple times. \
[default: <LEDGER>/accounts]"
),
) )
.arg( .arg(
Arg::with_name("account_shrink_path") Arg::with_name("account_shrink_path")