Browse Source

etcdctl: change peerURLs flag to 'peer-urls'

Gyu-Ho Lee 9 years ago
parent
commit
fa74a0d3bb
2 changed files with 6 additions and 6 deletions
  1. 4 4
      etcdctl/README.md
  2. 2 2
      etcdctl/ctlv3/command/member_command.go

+ 4 - 4
etcdctl/README.md

@@ -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
 ```
 

+ 2 - 2
etcdctl/ctlv3/command/member_command.go

@@ -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
 }