From 32cf81e59ca73bf3df28daa0ea2af10d1695ecfa Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 10 Aug 2016 15:46:28 -0700 Subject: [PATCH] Fixes a typo and adds stale documentation to website. --- command/watch.go | 4 ++-- website/source/docs/commands/watch.html.markdown | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/command/watch.go b/command/watch.go index 69939f72c..a6ec677a1 100644 --- a/command/watch.go +++ b/command/watch.go @@ -37,6 +37,8 @@ Options: -http-addr=127.0.0.1:8500 HTTP address of the Consul agent. -datacenter="" Datacenter to query. Defaults to that of agent. -token="" ACL token to use. Defaults to that of agent. + -stale=[true|false] Specifies if watch data is permitted to be stale. + Defaults to false. Watch Specification: @@ -47,8 +49,6 @@ Watch Specification: -prefix=val Specifies the key prefix to watch. Only for 'keyprefix' type. -service=val Specifies the service to watch. Required for 'service' type, optional for 'checks' type. - -stale=[true|false] Specefies if watch data is permitted to be stale. Defaults - false. -state=val Specifies the states to watch. Optional for 'checks' type. -tag=val Specifies the service tag to filter on. Optional for 'service' type. diff --git a/website/source/docs/commands/watch.html.markdown b/website/source/docs/commands/watch.html.markdown index 2406b5253..54c86508d 100644 --- a/website/source/docs/commands/watch.html.markdown +++ b/website/source/docs/commands/watch.html.markdown @@ -37,12 +37,15 @@ The list of available flags are: * `-token` - ACL token to use. Defaults to that of agent. +* `-stale=[true|false]` - Specifies if watch data is permitted to be stale. Defaults + to false. + * `-key` - Key to watch. Only for `key` type. * `-name`- Event name to watch. Only for `event` type. -* `-passingonly=[true|false]` - Should only passing entries be returned. Default false. - only for `service` type. +* `-passingonly=[true|false]` - Should only passing entries be returned. Defaults to + false and only applies for `service` type. * `-prefix` - Key prefix to watch. Only for `keyprefix` type.