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

Add -p as a shortcut for -b. Fixes #24

This commit is contained in:
Evan Phoenix 2012-01-13 15:41:22 -08:00
parent 27845c6244
commit d9d4eac335

View file

@ -120,6 +120,11 @@ module Puma
@options[:config_file] = arg
end
o.on "-p", "--port PORT", "Define what port TCP port to bind to",
"Use -b for more advanced options" do |arg|
@options[:binds] = "tcp://#{Configuration::DefaultTCPHost}:#{arg}"
end
o.on "--pidfile PATH", "Use PATH as a pidfile" do |arg|
@options[:pidfile] = arg
end