From 0eaa9d5238adc98df6b45cf3942eaa5b666bc531 Mon Sep 17 00:00:00 2001 From: Mike Cluck Date: Wed, 14 Jan 2026 11:04:24 -0500 Subject: [PATCH] Only show separator if command has usage text --- help.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.go b/help.go index 78686b1422..37b1091126 100644 --- a/help.go +++ b/help.go @@ -188,7 +188,7 @@ func printCommandSuggestions(commands []*Command, writer io.Writer) { if command.Hidden { continue } - if strings.HasSuffix(os.Getenv("SHELL"), "zsh") { + if strings.HasSuffix(os.Getenv("SHELL"), "zsh") && len(command.Usage) > 0 { _, _ = fmt.Fprintf(writer, "%s:%s\n", command.Name, command.Usage) } else { _, _ = fmt.Fprintf(writer, "%s\n", command.Name)