diff --git a/command.go b/command.go index 4569fe5..62775c9 100644 --- a/command.go +++ b/command.go @@ -857,6 +857,10 @@ func (c *Command) IsAvailableCommand() bool { return false } + if c.HasParent() && c.Parent().helpCommand == c { + return false + } + if c.Runnable() || c.HasAvailableSubCommands() { return true }