Use HelpPrinter in ShowCommandHelp
This commit is contained in:
parent
820deefc90
commit
357921b483
2
help.go
2
help.go
@ -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…
Reference in New Issue
Block a user