diff --git a/style/options.go b/style/options.go index f34e7a0b8..233e98e74 100644 --- a/style/options.go +++ b/style/options.go @@ -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"`