We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c798e20 commit 8989531Copy full SHA for 8989531
cli/root.go
@@ -335,7 +335,7 @@ func usageTemplate() string {
335
{{- if .HasAvailableSubCommands}}
336
{{usageHeader "Commands:"}}
337
{{- range .Commands}}
338
- {{- $hasRootAnnotations := (and $isRootHelp (eq (len .Annotations) 0))}}
+ {{- $hasRootAnnotations := (and $isRootHelp (gt (len .Annotations) 0))}}
339
{{- if (or (and .IsAvailableCommand (not $hasRootAnnotations)) (eq .Name "help"))}}
340
{{rpad .Name .NamePadding }} {{.Short}}
341
{{- end}}
0 commit comments