From 54c33a1c13b530c24a14454829b92d1400632e41 Mon Sep 17 00:00:00 2001 From: yuexiao-wang Date: Thu, 1 Dec 2016 18:30:44 +0800 Subject: [PATCH] Fix the use for secret create Signed-off-by: yuexiao-wang Upstream-commit: 5cef55ba9178604c67d99774526cf055c7d0aafe Component: engine --- components/engine/cli/command/secret/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/cli/command/secret/create.go b/components/engine/cli/command/secret/create.go index faef32ef89..381a931415 100644 --- a/components/engine/cli/command/secret/create.go +++ b/components/engine/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)