From 5a9b3ae0120c481a5e9a25efc2e0848d30a165ab Mon Sep 17 00:00:00 2001 From: Sarah Franc Date: Thu, 12 Nov 2020 00:59:40 +0100 Subject: [PATCH] Fix return err for PrintUsage --- context.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/context.go b/context.go index 42bb76b..654de50 100644 --- a/context.go +++ b/context.go @@ -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 {