Fix tests

This commit is contained in:
Naveen Gogineni
2022-10-11 16:28:12 -04:00
parent a9d6b0d821
commit 4a109bc0ce
4 changed files with 7 additions and 9 deletions

View File

@@ -107,10 +107,6 @@ func (cmd *Command) Command(name string) *Command {
}
func (c *Command) setup(ctx *Context) {
if c.HelpName == "" {
c.HelpName = fmt.Sprintf("%s %s", ctx.parentContext.Command.HelpName, c.Name)
}
if c.Command(helpCommand.Name) == nil && !c.HideHelp {
if !c.HideHelpCommand {
c.Subcommands = append(c.Subcommands, helpCommand)