diff --git a/lib/vagrant/easy/command_api.rb b/lib/vagrant/easy/command_api.rb index 5369da49d..b4a00045e 100644 --- a/lib/vagrant/easy/command_api.rb +++ b/lib/vagrant/easy/command_api.rb @@ -37,6 +37,8 @@ module Vagrant end begin + # The `dup` is required in @argv because the OptionParser + # modifies it in place as it finds matching arguments. parser.parse!(@argv.dup) rescue OptionParser::MissingArgument # Missing argument means the argument existed but had no data,