Remove the old version command.
This commit is contained in:
parent
27491b554c
commit
a4a77dc420
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue