Remove the old version command.

This commit is contained in:
Mitchell Hashimoto 2011-12-16 23:39:49 -08:00
parent 27491b554c
commit a4a77dc420
2 changed files with 4 additions and 13 deletions

View File

@ -8,9 +8,13 @@ module Vagrant
def execute def execute
if @main_args.include?("-v") || @main_args.include?("--version") 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", @env.ui.info(I18n.t("vagrant.commands.version.output",
:version => Vagrant::VERSION), :version => Vagrant::VERSION),
:prefix => false) :prefix => false)
return
end end
end end
end end

View File

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