Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
| ... | ... |
@@ -25,9 +25,9 @@ func newSecretCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
|
| 25 | 25 |
} |
| 26 | 26 |
|
| 27 | 27 |
cmd := &cobra.Command{
|
| 28 |
- Use: "create [OPTIONS] SECRET [SECRET...]", |
|
| 28 |
+ Use: "create [OPTIONS] SECRET", |
|
| 29 | 29 |
Short: "Create a secret using stdin as content", |
| 30 |
- Args: cli.RequiresMinArgs(1), |
|
| 30 |
+ Args: cli.ExactArgs(1), |
|
| 31 | 31 |
RunE: func(cmd *cobra.Command, args []string) error {
|
| 32 | 32 |
createOpts.name = args[0] |
| 33 | 33 |
return runSecretCreate(dockerCli, createOpts) |