Fix kv put flags

This commit is contained in:
Seth Vargo 2016-09-26 16:13:39 -07:00
parent 90f4953b47
commit 74e35b1f48
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
2 changed files with 7 additions and 10 deletions

View File

@ -37,10 +37,9 @@ Usage: consul kv delete [options] KEY_OR_PREFIX
KV Delete Options: KV Delete Options:
-cas Perform a Check-And-Set operation. If this value is -cas Perform a Check-And-Set operation. Specifying this
specified without -modify-index, the key will first be value also requires the -modify-index flag to be set.
fetched and the resulting ModifyIndex will be used on The default value is false.
the next query. The default value is false.
-modify-index=<int> Unsigned integer representing the ModifyIndex of the -modify-index=<int> Unsigned integer representing the ModifyIndex of the
key. This is used in combination with the -cas flag. key. This is used in combination with the -cas flag.

View File

@ -62,10 +62,9 @@ KV Put Options:
lock. The session must already exist and be specified lock. The session must already exist and be specified
via the -session flag. The default value is false. via the -session flag. The default value is false.
-cas Perform a Check-And-Set operation. If this value is -cas Perform a Check-And-Set operation. Specifying this
specified without -modify-index, the key will first be value also requires the -modify-index flag to be set.
fetched and the resulting ModifyIndex will be used on The default value is false.
the next query. The default value is false.
-flags=<int> Unsigned integer value to assign to this key-value -flags=<int> Unsigned integer value to assign to this key-value
pair. This value is not read by Consul, so clients can pair. This value is not read by Consul, so clients can
@ -73,8 +72,7 @@ KV Put Options:
The default value is 0 (no flags). The default value is 0 (no flags).
-modify-index=<int> Unsigned integer representing the ModifyIndex of the -modify-index=<int> Unsigned integer representing the ModifyIndex of the
key. This is often combined with the -cas flag, but it key. This is used in combination with the -cas flag.
can be specified for any key. The default value is 0.
-release Forfeit the lock on the key at the givne path. This -release Forfeit the lock on the key at the givne path. This
requires the -session flag to be set. The key must be requires the -session flag to be set. The key must be