Fixed ShowSubcommandHelp
ShowSubcommandHelp should show help for the subcommand not the app
This commit is contained in:
parent
687db20fc3
commit
4db56687fa
2
help.go
2
help.go
@ -131,7 +131,7 @@ func ShowCommandHelp(c *Context, command string) {
|
|||||||
|
|
||||||
// Prints help for the given subcommand
|
// Prints help for the given subcommand
|
||||||
func ShowSubcommandHelp(c *Context) {
|
func ShowSubcommandHelp(c *Context) {
|
||||||
HelpPrinter(SubcommandHelpTemplate, c.App)
|
ShowCommandHelp(c, c.Command.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prints the version number of the App
|
// Prints the version number of the App
|
||||||
|
Loading…
Reference in New Issue
Block a user