Allow `vagrant (un)install plugin1 plugin2 plugin3`

This commit is contained in:
Ryan S. Brown 2014-01-03 17:31:15 -06:00 committed by Mitchell Hashimoto
parent 5c4973beb8
commit b53ae446d2
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ module VagrantPlugins
return if !argv
raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
# Uninstall the gem
action(Action.action_uninstall, :plugin_name => argv[0])
# Uninstall the gems
argv.each{ |gem| action(Action.action_uninstall, :plugin_name => gem) }
# Success, exit status 0
0