bin: only add "--" if there are extra args

This commit is contained in:
Mitchell Hashimoto 2014-04-15 16:33:41 -07:00
parent b655b6d910
commit 29297e1a2f
1 changed files with 4 additions and 2 deletions

View File

@ -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