mirror of
https://github.com/charmbracelet/gum
synced 2024-06-03 14:22:17 +02:00
fix(style): print flags in style command (#91)
current style command doesn't print Style Flags in help flag
This commit is contained in:
parent
bba0f3b1e0
commit
eadcc5510f
|
@ -38,11 +38,6 @@ func (o Options) Run() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// BeforeReset hook. Used to unclutter style flags.
|
|
||||||
func (o Options) BeforeReset(ctx *kong.Context) error {
|
|
||||||
return HideFlags(ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
// HideFlags hides the flags from the usage output. This is used in conjunction
|
// HideFlags hides the flags from the usage output. This is used in conjunction
|
||||||
// with BeforeReset hook.
|
// with BeforeReset hook.
|
||||||
func HideFlags(ctx *kong.Context) error {
|
func HideFlags(ctx *kong.Context) error {
|
||||||
|
|
Loading…
Reference in a new issue