From f133f39bcc77ec091786dc34a11da8764e07429d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 1 Jun 2012 16:08:41 +0200 Subject: [PATCH] Add comment to explain unclear code --- lib/vagrant/easy/command_api.rb | 2 ++ 1 file changed, 2 insertions(+) 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,