Harmonize BeforeError usage in Command#Run

main
Aloïs Micard 4 years ago
parent 33744eb004
commit c261e4dbd3
No known key found for this signature in database
GPG Key ID: 1A0EB82F071F5EFE

@ -150,7 +150,6 @@ func (c *Command) Run(ctx *Context) (err error) {
if c.Before != nil {
err = c.Before(context)
if err != nil {
_ = ShowCommandHelp(context, c.Name)
context.App.handleExitCoder(context, err)
return err
}

Loading…
Cancel
Save