mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctlv3: updated member command options
This commit is contained in:
parent
4de39d3683
commit
1601ee761a
@ -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.
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user