From 68b88c8749fd9c19dc9fce295571a46029f27def 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 (cherry picked from commit 5cef55ba9178604c67d99774526cf055c7d0aafe) Signed-off-by: Victor Vieux --- cli/command/secret/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/secret/create.go b/cli/command/secret/create.go index faef32ef89..381a931415 100644 --- a/cli/command/secret/create.go +++ b/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)