Use HelpPrinter in ShowCommandHelp

main
Jack Christensen 11 years ago
parent 820deefc90
commit 357921b483

@ -110,7 +110,7 @@ func DefaultAppComplete(c *Context) {
func ShowCommandHelp(c *Context, command string) { func ShowCommandHelp(c *Context, command string) {
for _, c := range c.App.Commands { for _, c := range c.App.Commands {
if c.HasName(command) { if c.HasName(command) {
printHelp(CommandHelpTemplate, c) HelpPrinter(CommandHelpTemplate, c)
return return
} }
} }

Loading…
Cancel
Save