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

Commit

Permalink
Change flag names to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
derekchiang committed Nov 9, 2013
1 parent 2d199bd commit e8db337
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions compare_and_swap.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import (
)

const CompareAndSwapUsage = `usage: etcdctl [etcd flags] compareAndSwap <key> <value> [testAndSet flags]
either prevValue or prevIndex needs to be given
either prevvalue or previndex needs to be given
special flags: --ttl to set a key with ttl
--prevValue to set the previous value
--prevIndex to set the previous index`
--prevvalue to set the previous value
--previndex to set the previous index`

var (
compareAndSwapFlag = flag.NewFlagSet("testAndSet", flag.ExitOnError)
compareAndSwapTtl = compareAndSwapFlag.Uint64("ttl", 0, "ttl of the key")
compareAndSwapPvalue = compareAndSwapFlag.String("prevValue", "", "previous value")
compareAndSwapPindex = compareAndSwapFlag.Uint64("prevIndex", 0, "previous index")
compareAndSwapPvalue = compareAndSwapFlag.String("prevvalue", "", "previous value")
compareAndSwapPindex = compareAndSwapFlag.Uint64("previndex", 0, "previous index")
)

func init() {
Expand Down

0 comments on commit e8db337

Please sign in to comment.