From 1601ee761a963fd326ba8842b3397a508916cf7d Mon Sep 17 00:00:00 2001 From: sharat Date: Thu, 22 Sep 2016 15:04:54 +0530 Subject: [PATCH] etcdctlv3: updated member command options --- etcdctl/README.md | 4 ++-- etcdctl/ctlv3/command/member_command.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etcdctl/README.md b/etcdctl/README.md index d6323b5cc..c0f094919 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -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 \ +### MEMBER ADD \ [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 \ +### MEMBER UPDATE \ [options] MEMBER UPDATE sets the peer URLs for an existing member in the etcd cluster. diff --git a/etcdctl/ctlv3/command/member_command.go b/etcdctl/ctlv3/command/member_command.go index 2136c3958..e1bf4994e 100644 --- a/etcdctl/ctlv3/command/member_command.go +++ b/etcdctl/ctlv3/command/member_command.go @@ -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 ", + Use: "add [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 ", + Use: "update [options]", Short: "Updates a member in the cluster", Run: memberUpdateCommandFunc,