Prechádzať zdrojové kódy

Fix the use for secret create

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
(cherry picked from commit 5cef55ba9178604c67d99774526cf055c7d0aafe)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
yuexiao-wang 8 rokov pred
rodič
commit
68b88c8749
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      cli/command/secret/create.go

+ 2 - 2
cli/command/secret/create.go

@@ -25,9 +25,9 @@ func newSecretCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
 	}
 
 	cmd := &cobra.Command{
-		Use:   "create [OPTIONS] SECRET [SECRET...]",
+		Use:   "create [OPTIONS] SECRET",
 		Short: "Create a secret using stdin as content",
-		Args:  cli.RequiresMinArgs(1),
+		Args:  cli.ExactArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {
 			createOpts.name = args[0]
 			return runSecretCreate(dockerCli, createOpts)