浏览代码

Merge pull request #5070 from heyitsanthony/member-doc

etcdctl: display required arguments for member commands in usage
Anthony Romano 9 年之前
父节点
当前提交
3dcfe79cc0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      etcdctl/ctlv3/command/member_command.go

+ 3 - 3
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 <memberName>",
 		Short: "add is used to add a member into the cluster",
 
 		Run: memberAddCommandFunc,
@@ -56,7 +56,7 @@ func NewMemberAddCommand() *cobra.Command {
 // NewMemberRemoveCommand returns the cobra command for "member remove".
 func NewMemberRemoveCommand() *cobra.Command {
 	cc := &cobra.Command{
-		Use:   "remove",
+		Use:   "remove <memberID>",
 		Short: "remove is used to remove a member from the cluster",
 
 		Run: memberRemoveCommandFunc,
@@ -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 <memberID>",
 		Short: "update is used to update a member in the cluster",
 
 		Run: memberUpdateCommandFunc,