1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Add -V, --version

This commit is contained in:
Evan Phoenix 2013-02-08 18:23:30 -08:00
parent 50c6f099c8
commit 5e1b46b77c

View file

@ -256,6 +256,11 @@ module Puma
end end
end end
o.on "-V", "--version", "Print the version information" do
puts "puma version #{Puma::Const::VERSION}"
exit 1
end
o.on "-w", "--workers COUNT", o.on "-w", "--workers COUNT",
"Activate cluster mode: How many worker processes to create" do |arg| "Activate cluster mode: How many worker processes to create" do |arg|
unsupported "-w not supported on JRuby and Windows", unsupported "-w not supported on JRuby and Windows",