fix rm plugin arg number to be min 1
Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: d5271490649eb60dd705598b072d1bda66d8d16e Component: engine
This commit is contained in:
@@ -26,7 +26,7 @@ func newRemoveCommand(dockerCli *client.DockerCli) *cobra.Command {
|
||||
Use: "rm [OPTIONS] PLUGIN [PLUGIN...]",
|
||||
Short: "Remove one or more plugins",
|
||||
Aliases: []string{"remove"},
|
||||
Args: cli.ExactArgs(1),
|
||||
Args: cli.RequiresMinArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
opts.plugins = args
|
||||
return runRemove(dockerCli, &opts)
|
||||
|
||||
Reference in New Issue
Block a user