From 3d6b11375a2ed27ffa775a36995aa5fe8d397197 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 18 Nov 2015 11:21:39 -0800 Subject: [PATCH] commands/plugin: plugin-clean-sources --- plugins/commands/plugin/command/mixin_install_opts.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/commands/plugin/command/mixin_install_opts.rb b/plugins/commands/plugin/command/mixin_install_opts.rb index ffee55cde..004fd10b0 100644 --- a/plugins/commands/plugin/command/mixin_install_opts.rb +++ b/plugins/commands/plugin/command/mixin_install_opts.rb @@ -22,9 +22,9 @@ module VagrantPlugins puts end - o.on("--plugin-clean-sources", String, - "Remove all plugin sources defined so far (including defaults)") do - options[:plugin_sources] = [] + o.on("--plugin-clean-sources", + "Remove all plugin sources defined so far (including defaults)") do |clean| + options[:plugin_sources] = [] if clean end o.on("--plugin-source PLUGIN_SOURCE", String,