diff --git a/command.go b/command.go index 5bb3058..4ff14b2 100644 --- a/command.go +++ b/command.go @@ -582,7 +582,7 @@ func (c *Command) Execute() (err error) { err = cmd.execute(flags) if err != nil { if err == flag.ErrHelp { - cmd.Help() + cmd.HelpFunc()(cmd, args) return nil } c.Println(cmd.UsageString())