fix: Reset() should always be called before anything else

This commit is contained in:
Alec Thomas
2022-06-15 20:45:10 +10:00
parent edc47ebc34
commit 0066abb973
4 changed files with 49 additions and 42 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ const (
// Help flag.
type helpValue bool
func (h helpValue) BeforeResolve(ctx *Context) error {
func (h helpValue) BeforeReset(ctx *Context) error {
options := ctx.Kong.helpOptions
options.Summary = false
err := ctx.Kong.help(options, ctx)