Skip to content
This repository was archived by the owner on Jun 4, 2019. It is now read-only.

Commit 2d199bd

Browse files
committed
Change flag names to match API params
1 parent e3ac090 commit 2d199bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compare_and_swap.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import (
88
const CompareAndSwapUsage = `usage: etcdctl [etcd flags] compareAndSwap <key> <value> [testAndSet flags]
99
either prevValue or prevIndex needs to be given
1010
special flags: --ttl to set a key with ttl
11-
--pvalue to set the previous value
12-
--pindex to set the previous index`
11+
--prevValue to set the previous value
12+
--prevIndex to set the previous index`
1313

1414
var (
1515
compareAndSwapFlag = flag.NewFlagSet("testAndSet", flag.ExitOnError)
1616
compareAndSwapTtl = compareAndSwapFlag.Uint64("ttl", 0, "ttl of the key")
17-
compareAndSwapPvalue = compareAndSwapFlag.String("pvalue", "", "previous value")
18-
compareAndSwapPindex = compareAndSwapFlag.Uint64("pindex", 0, "previous index")
17+
compareAndSwapPvalue = compareAndSwapFlag.String("prevValue", "", "previous value")
18+
compareAndSwapPindex = compareAndSwapFlag.Uint64("prevIndex", 0, "previous index")
1919
)
2020

2121
func init() {

0 commit comments

Comments
 (0)