Fix tests

This commit is contained in:
Naveen Gogineni
2022-10-06 20:53:05 -05:00
parent 1ada1a1c06
commit 02613e50be
6 changed files with 22 additions and 32 deletions
+1 -5
View File
@@ -242,11 +242,7 @@ func ShowCommandHelp(ctx *Context, command string) error {
c.Subcommands = append(c.Subcommands, helpCommandDontUse)
}
if !ctx.App.HideHelp && HelpFlag != nil {
if c.flagCategories == nil {
c.flagCategories = newFlagCategoriesFromFlags([]Flag{HelpFlag})
} else {
c.flagCategories.AddFlag("", HelpFlag)
}
c.appendFlag(HelpFlag)
}
templ := c.CustomHelpTemplate
if templ == "" {