Merge pull request #446 from jamescun/master

Fix ActionFunc signature of ShowAppHelp action
This commit is contained in:
Dan Buch 2016-06-08 10:31:04 -04:00
commit 8b2531778f

View File

@ -117,8 +117,9 @@ var HelpPrinter helpPrinter = printHelp
var VersionPrinter = printVersion
// ShowAppHelp is an action that displays the help.
func ShowAppHelp(c *Context) {
func ShowAppHelp(c *Context) error {
HelpPrinter(c.App.Writer, AppHelpTemplate, c.App)
return nil
}
// DefaultAppComplete prints the list of subcommands as the default app completion method