From 27c62a9b28f20aea3960bc03009319c823ffbccc Mon Sep 17 00:00:00 2001 From: Brooks Date: Mon, 29 Jul 2024 13:19:09 -0400 Subject: [PATCH] ledger-tool: unify and colorize help (#2322) (cherry picked from commit 38458f4a34ee47e3ff9e3328be77860ff882342b) --- ledger-tool/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 8339c0a14d07ff..51e1dfe1b08f29 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -665,9 +665,11 @@ fn main() { let matches = App::new(crate_name!()) .about(crate_description!()) .version(solana_version::version!()) - .setting(AppSettings::InferSubcommands) + .global_setting(AppSettings::ColoredHelp) + .global_setting(AppSettings::InferSubcommands) + .global_setting(AppSettings::UnifiedHelpMessage) + .global_setting(AppSettings::VersionlessSubcommands) .setting(AppSettings::SubcommandRequiredElseHelp) - .setting(AppSettings::VersionlessSubcommands) .arg( Arg::with_name("ledger_path") .short("l")