Skip to content

Commit

Permalink
docs(style): add comment regarding dynamically hiding flags
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Nov 28, 2023
1 parent 0d5a4cf commit 69bab50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions style/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ type Styles struct {
}

// StylesNotHidden allows the style struct to display full help when not-embedded.
//
// NB: We must duplicate this struct to ensure that `gum style` does not hide
// flags when an error pops up. Ideally, we can dynamically hide or show flags
// based on the command run: https://github.com/alecthomas/kong/issues/316
type StylesNotHidden struct {
// Colors
Foreground string `help:"Foreground Color" default:"${defaultForeground}" group:"Style Flags" env:"FOREGROUND"`
Expand Down

0 comments on commit 69bab50

Please sign in to comment.