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,