Browse code

Fix the use for secret create

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>

yuexiao-wang authored on 2016/12/01 19:30:44
Showing 1 changed files
... ...
@@ -25,9 +25,9 @@ func newSecretCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
25 25
 	}
26 26
 
27 27
 	cmd := &cobra.Command{
28
-		Use:   "create [OPTIONS] SECRET [SECRET...]",
28
+		Use:   "create [OPTIONS] SECRET",
29 29
 		Short: "Create a secret using stdin as content",
30
-		Args:  cli.RequiresMinArgs(1),
30
+		Args:  cli.ExactArgs(1),
31 31
 		RunE: func(cmd *cobra.Command, args []string) error {
32 32
 			createOpts.name = args[0]
33 33
 			return runSecretCreate(dockerCli, createOpts)