Skip to content

Commit

Permalink
v2.0: ledger-tool: unify and colorize help (backport of #2322) (#2335)
Browse files Browse the repository at this point in the history
ledger-tool: unify and colorize help (#2322)

(cherry picked from commit 38458f4)

Co-authored-by: Brooks <brooks@anza.xyz>
  • Loading branch information
mergify[bot] and brooksprumo authored Jul 30, 2024
1 parent 71fd167 commit 16dd41c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 16dd41c

Please sign in to comment.