Browse Source

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

fix rm plugin arg number to be min 1
Brian Goff 8 years ago
parent
commit
e32e0a6cdc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/client/plugin/remove.go

+ 1 - 1
api/client/plugin/remove.go

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