etcdctlv3: use --interactive for interactive mode in watch

This commit is contained in:
Anthony Romano 2016-02-22 09:55:09 -08:00
parent 87dcb2adea
commit b280291f9e
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ Watch watches events stream on keys or prefixes. The watch command runs until it
- hex -- print out key and value as hex encode string
- i -- begins an interactive watch session
- interactive -- begins an interactive watch session
- prefix -- watch on a prefix if prefix is set.

View File

@ -44,7 +44,7 @@ func NewWatchCommand() *cobra.Command {
}
cmd.Flags().BoolVar(&watchHex, "hex", false, "print out key and value as hex encode string for text format")
cmd.Flags().BoolVar(&watchInteractive, "i", false, "interactive mode")
cmd.Flags().BoolVarP(&watchInteractive, "interactive", "i", false, "interactive mode")
cmd.Flags().BoolVar(&watchPrefix, "prefix", false, "watch on a prefix if prefix is set")
cmd.Flags().Int64Var(&watchRev, "rev", 0, "revision to start watching")