diff --git a/plugins/commands/plugin/command/update.rb b/plugins/commands/plugin/command/update.rb index 96bd1f678..6f7c9ff36 100644 --- a/plugins/commands/plugin/command/update.rb +++ b/plugins/commands/plugin/command/update.rb @@ -10,9 +10,14 @@ module VagrantPlugins include MixinInstallOpts def execute + options = {} opts = OptionParser.new do |o| o.banner = "Usage: vagrant plugin update [names...] [-h]" o.separator "" + + o.on("--local", "Remove plugin from local project") do |l| + options[:env_local] = l + end end # Parse the options @@ -22,6 +27,7 @@ module VagrantPlugins # Update the gem action(Action.action_update, { plugin_name: argv, + env_local: options[:env_local] }) # Success, exit status 0