We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a107ee4 commit 4031d4cCopy full SHA for 4031d4c
help.go
@@ -125,16 +125,8 @@ func helpCommandAction(ctx context.Context, cmd *Command) error {
125
126
// Case 3, 5
127
if len(cmd.VisibleCommands()) == 0 {
128
-
129
- tmpl := cmd.CustomHelpTemplate
130
- if tmpl == "" {
131
- tmpl = CommandHelpTemplate
132
- }
133
134
tracef("running HelpPrinter with command %[1]q", cmd.Name)
135
- HelpPrinter(cmd.Root().Writer, tmpl, cmd)
136
137
- return nil
+ return ShowCommandHelp(ctx, cmd.parent, cmd.Name)
138
}
139
140
tracef("running ShowSubcommandHelp")
0 commit comments