diff --git a/help.go b/help.go index 7a4ef69..06c526f 100644 --- a/help.go +++ b/help.go @@ -187,7 +187,7 @@ func ShowCommandHelp(ctx *Context, command string) error { for _, c := range ctx.App.Commands { if c.HasName(command) { if c.CustomHelpTemplate != "" { - HelpPrinterCustom(ctx.App.Writer, c.CustomHelpTemplate, c, nil) + HelpPrinter(ctx.App.Writer, c.CustomHelpTemplate, c) } else { HelpPrinter(ctx.App.Writer, CommandHelpTemplate, c) } @@ -261,7 +261,7 @@ func printHelpCustom(out io.Writer, templ string, data interface{}, customFunc m } func printHelp(out io.Writer, templ string, data interface{}) { - printHelpCustom(out, templ, data, nil) + HelpPrinterCustom(out, templ, data, nil) } func checkVersion(c *Context) bool {