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:
allencloud
2016-08-25 20:53:49 +08:00
parent 96297e96b5
commit 5d21e92692
@@ -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)