etcdctlv3: updated member command options

release-3.1
sharat 2016-09-22 15:04:54 +05:30
parent 4de39d3683
commit 1601ee761a
2 changed files with 4 additions and 4 deletions

View File

@ -418,7 +418,7 @@ LEASE KEEP-ALIVE periodically refreshes a lease so it does not expire.
MEMBER provides commands for managing etcd cluster membership.
### MEMBER ADD \<memberName\>
### MEMBER ADD \<memberName\> [options]
MEMBER ADD introduces a new member into the etcd cluster as a new peer.
@ -440,7 +440,7 @@ MEMBER ADD introduces a new member into the etcd cluster as a new peer.
```
### MEMBER UPDATE \<memberID\>
### MEMBER UPDATE \<memberID\> [options]
MEMBER UPDATE sets the peer URLs for an existing member in the etcd cluster.

View File

@ -42,7 +42,7 @@ func NewMemberCommand() *cobra.Command {
// NewMemberAddCommand returns the cobra command for "member add".
func NewMemberAddCommand() *cobra.Command {
cc := &cobra.Command{
Use: "add <memberName>",
Use: "add <memberName> [options]",
Short: "Adds a member into the cluster",
Run: memberAddCommandFunc,
@ -68,7 +68,7 @@ func NewMemberRemoveCommand() *cobra.Command {
// NewMemberUpdateCommand returns the cobra command for "member update".
func NewMemberUpdateCommand() *cobra.Command {
cc := &cobra.Command{
Use: "update <memberID>",
Use: "update <memberID> [options]",
Short: "Updates a member in the cluster",
Run: memberUpdateCommandFunc,