Include local flag for plugin update command

This commit is contained in:
Chris Roberts 2018-07-18 14:02:17 -07:00
parent 3fd55dac23
commit 7a623d2826
1 changed files with 6 additions and 0 deletions

View File

@ -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