Skip to content

Commit

Permalink
ledger-tool: unify and colorize help (anza-xyz#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Jul 29, 2024
1 parent 49de543 commit 38458f4
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 38458f4

Please sign in to comment.