Merge pull request #84 from JackC/help-printer
Use HelpPrinter in ShowCommandHelp
This commit is contained in:
commit
07cae0dfd4
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