From 7a623d282684e352423e56e45e436c4aff4bb595 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 18 Jul 2018 14:02:17 -0700 Subject: [PATCH] Include local flag for plugin update command --- plugins/commands/plugin/command/update.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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