mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix rm plugin arg number to be min 1
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
4844d13bd7
commit
d527149064
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue