Mark McLoughlin 36d7acf330 etcdctl: fix interactive mode panic
Don't panic if command is given in interactive mode, give a nice error
message instead.

Before:

 $ ./bin/etcdctl watch -i
 <hit return>
 panic: runtime error: index out of range

 goroutine 1 [running]:
 etcdctl/ctlv3/command.watchInteractiveFunc(...)
 	etcd/etcdctl/ctlv3/command/watch_command.go:104 ...

After:

 $ ./bin/etcdctl watch -i
 <hit return>
 Invalid command:  (watch and progress supported)
 foo
 Invalid command foo (only support watch)
2019-01-14 13:01:37 +00:00
..
2018-08-28 18:25:39 -07:00
2018-08-28 18:25:39 -07:00
2016-05-12 20:51:39 -07:00
2018-11-10 11:14:18 +09:00
2018-09-28 09:53:24 -07:00
2018-08-28 18:25:39 -07:00