fix(style): print flags in style command (#91)

current style command doesn't print Style Flags in help flag
This commit is contained in:
maplepie 2022-08-04 01:43:20 +08:00 committed by GitHub
parent bba0f3b1e0
commit eadcc5510f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,11 +38,6 @@ func (o Options) Run() error {
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
// with BeforeReset hook.
func HideFlags(ctx *kong.Context) error {