浏览代码

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 年之前
父节点
当前提交
68b88c8749
共有 1 个文件被更改,包括 2 次插入2 次删除
  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{
 	cmd := &cobra.Command{
-		Use:   "create [OPTIONS] SECRET [SECRET...]",
+		Use:   "create [OPTIONS] SECRET",
 		Short: "Create a secret using stdin as content",
 		Short: "Create a secret using stdin as content",
-		Args:  cli.RequiresMinArgs(1),
+		Args:  cli.ExactArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {
 			createOpts.name = args[0]
 			createOpts.name = args[0]
 			return runSecretCreate(dockerCli, createOpts)
 			return runSecretCreate(dockerCli, createOpts)