1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Generate the --version information in the executables from Haml.version.

This commit is contained in:
Nathan Weizenbaum 2008-04-10 21:54:12 -07:00
parent c38202800d
commit 709ccc2c3f

View file

@ -63,7 +63,7 @@ module Haml
end
opts.on_tail("-v", "--version", "Print version") do
puts("Haml " + File.read(File.dirname(__FILE__) + '/../../VERSION'))
puts("Haml #{::Haml.version[:string]}")
exit
end
end