diff --git a/etcdctl/ctlv2/command/exec_watch_command.go b/etcdctl/ctlv2/command/exec_watch_command.go index 4cc859820..3661f61ef 100644 --- a/etcdctl/ctlv2/command/exec_watch_command.go +++ b/etcdctl/ctlv2/command/exec_watch_command.go @@ -76,10 +76,7 @@ func execWatchCommandFunc(c *cli.Context, ki client.KeysAPI) { cmdArgs = args[:argslen-1] } - index := 0 - if c.Int("after-index") != 0 { - index = c.Int("after-index") - } + index := c.Uint64("after-index") recursive := c.Bool("recursive")