From 817f7f326efaa485642ad00caf020ac32c07ea86 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 5 Jan 2014 15:27:03 -0800 Subject: [PATCH] fast path Vagrant --version --- bin/vagrant | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/vagrant b/bin/vagrant index 3636225c2..6f53a27bb 100755 --- a/bin/vagrant +++ b/bin/vagrant @@ -5,6 +5,12 @@ # initializing which have historically resulted in stack traces. Signal.trap("INT") { abort } +# Fast path the version of Vagrant +if argv.include?("-v") || argv.include?("--version") + puts "Vagrant #{Vagrant::VERSION}" + exit 0 +end + # First, make sure that we're executing using the proper Bundler context # with our plugins. If we're not, then load that and reload Vagrant. if !ENV["VAGRANT_INTERNAL_BUNDLERIZED"] @@ -99,12 +105,6 @@ argv.each do |arg| end end -# Fast path the version of Vagrant -if argv.include?("-v") || argv.include?("--version") - puts "Vagrant #{Vagrant::VERSION}" - exit 0 -end - # Recombine the arguments argv << "--" argv += argv_extra