Ver Fonte

Merge pull request #6798 from gyuho/ctl-doc

etcdctl/ctlv3: clarify 'user add' argument (user:password)
Gyu-Ho Lee há 9 anos atrás
pai
commit
aa526cd53d
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      etcdctl/README.md
  2. 1 1
      etcdctl/ctlv3/command/user_command.go

+ 1 - 1
etcdctl/README.md

@@ -1074,7 +1074,7 @@ ROLE is used to specify differnt roles which can be assigned to etcd user(s).
 
 
 USER provides commands for managing users of etcd.
 USER provides commands for managing users of etcd.
 
 
-### USER ADD \<user name\> [options]
+### USER ADD \<user name or user:password\> [options]
 
 
 `user add` creates a user.
 `user add` creates a user.
 
 

+ 1 - 1
etcdctl/ctlv3/command/user_command.go

@@ -51,7 +51,7 @@ var (
 
 
 func newUserAddCommand() *cobra.Command {
 func newUserAddCommand() *cobra.Command {
 	cmd := cobra.Command{
 	cmd := cobra.Command{
-		Use:   "add <user name> [options]",
+		Use:   "add <user name or user:password> [options]",
 		Short: "Adds a new user",
 		Short: "Adds a new user",
 		Run:   userAddCommandFunc,
 		Run:   userAddCommandFunc,
 	}
 	}