Add a way to override the app help printer

Fixes #64
This commit is contained in:
Tim Jarratt
2014-02-04 08:40:06 -08:00
parent c606efc92b
commit 58bfabca6d
2 changed files with 21 additions and 1 deletions

View File

@@ -59,8 +59,9 @@ var helpCommand = Command{
}
// Prints help for the App
var HelpPrinter = printHelp
func ShowAppHelp(c *Context) {
printHelp(AppHelpTemplate, c.App)
HelpPrinter(AppHelpTemplate, c.App)
}
// Prints help for the given command