Skip to content

Commit 54259d2

Browse files
phruflin
authored andcommitted
Missing mention of the zsh completion formation in the error message (#5838)
1 parent 6073d61 commit 54259d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libbeat/cmd/completion.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func genCompletionCmd(name, version string, rootCmd *BeatsRootCmd) *cobra.Command {
1111
completionCmd := cobra.Command{
1212
Use: "completion SHELL",
13-
Short: "Output shell completion code for the specified shell (bash only by the moment)",
13+
Short: "Output shell completion code for the specified shell (bash and zsh only by the moment)",
1414
// We don't want to expose this one in help:
1515
Hidden: true,
1616
Run: func(cmd *cobra.Command, args []string) {
@@ -25,7 +25,7 @@ func genCompletionCmd(name, version string, rootCmd *BeatsRootCmd) *cobra.Comman
2525
case "zsh":
2626
rootCmd.GenZshCompletion(os.Stdout)
2727
default:
28-
fmt.Printf("Unknown shell %s, only bash is available\n", args[0])
28+
fmt.Printf("Unknown shell %s, only bash and zsh are available\n", args[0])
2929
os.Exit(1)
3030
}
3131
},

0 commit comments

Comments
 (0)