From a4a77dc4207d978eef28888af1e6a74053937fa2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 16 Dec 2011 23:39:49 -0800 Subject: [PATCH] Remove the old version command. --- lib/vagrant/cli.rb | 4 ++++ lib/vagrant/command/version.rb | 13 ------------- 2 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 lib/vagrant/command/version.rb diff --git a/lib/vagrant/cli.rb b/lib/vagrant/cli.rb index 54058e0ae..bd5d8c971 100644 --- a/lib/vagrant/cli.rb +++ b/lib/vagrant/cli.rb @@ -8,9 +8,13 @@ module Vagrant def execute if @main_args.include?("-v") || @main_args.include?("--version") + # Version short-circuits the whole thing. Just print + # the version and exit. @env.ui.info(I18n.t("vagrant.commands.version.output", :version => Vagrant::VERSION), :prefix => false) + + return end end end diff --git a/lib/vagrant/command/version.rb b/lib/vagrant/command/version.rb deleted file mode 100644 index 51a956faa..000000000 --- a/lib/vagrant/command/version.rb +++ /dev/null @@ -1,13 +0,0 @@ -module Vagrant - module Command - class VersionCommand < Base - register "version", "Prints the Vagrant version information", :alias => %w(-v --version) - - def version - env.ui.info(I18n.t("vagrant.commands.version.output", - :version => Vagrant::VERSION), - :prefix => false) - end - end - end -end