diff --git a/etcdctl/ctlv3/command/watch_command.go b/etcdctl/ctlv3/command/watch_command.go index cadfa0a80..ce8425cbe 100644 --- a/etcdctl/ctlv3/command/watch_command.go +++ b/etcdctl/ctlv3/command/watch_command.go @@ -101,6 +101,10 @@ func watchInteractiveFunc(cmd *cobra.Command, osArgs []string, envKey, envRange l = strings.TrimSuffix(l, "\n") args := argify(l) + if len(args) < 1 { + fmt.Fprintf(os.Stderr, "Invalid command: %s (watch and progress supported)\n", l) + continue + } switch args[0] { case "watch": if len(args) < 2 && envKey == "" {