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:
parent
27845c6244
commit
d9d4eac335
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue