From 29297e1a2fccb7bb296601dab830115821211591 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 15 Apr 2014 16:33:41 -0700 Subject: [PATCH] bin: only add "--" if there are extra args --- bin/vagrant | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/vagrant b/bin/vagrant index 2354d15fa..98f7e2e3b 100755 --- a/bin/vagrant +++ b/bin/vagrant @@ -146,8 +146,10 @@ begin opts[:ui_class] ||= Vagrant::UI::Colored # Recombine the arguments - argv << "--" - argv += argv_extra + if !argv_extra.empty? + argv << "--" + argv += argv_extra + end # Create the environment, which is the cwd of wherever the # `vagrant` command was invoked from