diff --git a/app_test.go b/app_test.go index 9c6b960..b0b02e6 100644 --- a/app_test.go +++ b/app_test.go @@ -908,6 +908,7 @@ func TestApp_Run_CommandWithSubcommandHasHelpTopic(t *testing.T) { Name: "foo", Description: "descriptive wall of text about how it does foo things", Subcommands: []Command{subCmdBar, subCmdBaz}, + Action: func(c *Context) error { return nil }, } app.Commands = []Command{cmd} diff --git a/help.go b/help.go index 0f4cf14..ba34719 100644 --- a/help.go +++ b/help.go @@ -240,7 +240,7 @@ func checkCommandHelp(c *Context, name string) bool { } func checkSubcommandHelp(c *Context) bool { - if c.GlobalBool("h") || c.GlobalBool("help") { + if c.Bool("h") || c.Bool("help") { ShowSubcommandHelp(c) return true }