1
0
mirror of https://github.com/docker/cli.git synced 2026-01-23 15:21:32 +03:00

Merge pull request #29009 from yuexiao-wang/fix-secret-create

Fix the usage for secret create
Upstream-commit: 782f0ed73d3c6f2f625f7904c0ce1c61847a75bf
Component: engine
This commit is contained in:
Vincent Demeester
2016-12-01 11:29:45 +01:00
committed by GitHub

View File

@@ -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)