瀏覽代碼

fix rm plugin arg number to be min 1

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 年之前
父節點
當前提交
d527149064
共有 1 個文件被更改,包括 1 次插入1 次删除
  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...]",
 		Use:     "rm [OPTIONS] PLUGIN [PLUGIN...]",
 		Short:   "Remove one or more plugins",
 		Short:   "Remove one or more plugins",
 		Aliases: []string{"remove"},
 		Aliases: []string{"remove"},
-		Args:    cli.ExactArgs(1),
+		Args:    cli.RequiresMinArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {
 			opts.plugins = args
 			opts.plugins = args
 			return runRemove(dockerCli, &opts)
 			return runRemove(dockerCli, &opts)