Merge pull request #26010 from allencloud/fix-rm-plugin-arg-num

fix rm plugin arg number to be min 1
This commit is contained in:
Brian Goff 2016-08-25 10:38:49 -04:00 committed by GitHub
commit e32e0a6cdc
1 changed files with 1 additions and 1 deletions

View File

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