Fix return err for PrintUsage

This commit is contained in:
Sarah Franc
2020-11-12 00:59:40 +01:00
committed by Alec Thomas
parent 26524e0cc1
commit 5a9b3ae012
+1 -2
View File
@@ -694,8 +694,7 @@ func (c *Context) Run(binds ...interface{}) (err error) {
func (c *Context) PrintUsage(summary bool) error {
options := c.helpOptions
options.Summary = summary
_ = c.help(options, c)
return nil
return c.help(options, c)
}
func checkMissingFlags(flags []*Flag) error {