Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed Jun 22, 2023
1 parent 2d78d21 commit f647ff9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions king.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func DefaultOptions(c Config) []kong.Option {
opts := []kong.Option{
kong.Name(c.Name),
kong.Description(c.Description),
// kong.HelpFormatter(newHelpFormatter(c.Name)),
kong.ValueFormatter(newHelpFormatter(c.Name)),
kong.ConfigureHelp(kong.HelpOptions{
Compact: true,
}),
Expand Down Expand Up @@ -207,7 +207,7 @@ func contains(list []string, item string) bool {
return false
}

/* func newHelpFormatter(appName string) func(*kong.Value) string {
func newHelpFormatter(appName string) func(*kong.Value) string {
return func(value *kong.Value) string {
var suffix string

Expand All @@ -227,4 +227,4 @@ func contains(list []string, item string) bool {
return value.Help + " " + suffix
}
}
} */
}

0 comments on commit f647ff9

Please sign in to comment.