mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: change peerURLs flag to 'peer-urls'
This commit is contained in:
parent
c949811752
commit
fa74a0d3bb
@ -351,7 +351,7 @@ MEMBER ADD introduces a new member into the etcd cluster as a new peer.
|
||||
|
||||
#### Options
|
||||
|
||||
- peerURLs -- comma separated list of URLs to associate with the new member.
|
||||
- peer-urls -- comma separated list of URLs to associate with the new member.
|
||||
|
||||
#### Return value
|
||||
|
||||
@ -362,7 +362,7 @@ MEMBER ADD introduces a new member into the etcd cluster as a new peer.
|
||||
#### Example
|
||||
|
||||
```bash
|
||||
./etcdctl member add newMember --peerURLs=https://127.0.0.1:12345
|
||||
./etcdctl member add newMember --peer-urls=https://127.0.0.1:12345
|
||||
Member 2be1eb8f84b7f63e added to cluster ef37ad9dc622a7c4
|
||||
```
|
||||
|
||||
@ -373,7 +373,7 @@ MEMBER UPDATE sets the peer URLs for an existing member in the etcd cluster.
|
||||
|
||||
#### Options
|
||||
|
||||
- peerURLs -- comma separated list of URLs to associate with the updated member.
|
||||
- peer-urls -- comma separated list of URLs to associate with the updated member.
|
||||
|
||||
#### Return value
|
||||
|
||||
@ -384,7 +384,7 @@ MEMBER UPDATE sets the peer URLs for an existing member in the etcd cluster.
|
||||
#### Example
|
||||
|
||||
```bash
|
||||
./etcdctl member update 2be1eb8f84b7f63e --peerURLs=https://127.0.0.1:11112
|
||||
./etcdctl member update 2be1eb8f84b7f63e --peer-urls=https://127.0.0.1:11112
|
||||
Member 2be1eb8f84b7f63e updated in cluster ef37ad9dc622a7c4
|
||||
```
|
||||
|
||||
|
@ -48,7 +48,7 @@ func NewMemberAddCommand() *cobra.Command {
|
||||
Run: memberAddCommandFunc,
|
||||
}
|
||||
|
||||
cc.Flags().StringVar(&memberPeerURLs, "peerURLs", "", "comma separated peer URLs for the new member.")
|
||||
cc.Flags().StringVar(&memberPeerURLs, "peer-urls", "", "comma separated peer URLs for the new member.")
|
||||
|
||||
return cc
|
||||
}
|
||||
@ -74,7 +74,7 @@ func NewMemberUpdateCommand() *cobra.Command {
|
||||
Run: memberUpdateCommandFunc,
|
||||
}
|
||||
|
||||
cc.Flags().StringVar(&memberPeerURLs, "peerURLs", "", "comma separated peer URLs for the updated member.")
|
||||
cc.Flags().StringVar(&memberPeerURLs, "peer-urls", "", "comma separated peer URLs for the updated member.")
|
||||
|
||||
return cc
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user