diff options
Diffstat (limited to 'bin/unicorn')
-rwxr-xr-x | bin/unicorn | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/unicorn b/bin/unicorn index 01984f8..c272e43 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -47,9 +47,9 @@ op = OptionParser.new("", 24, ' ') do |opts| rackup_opts[:set_listener] = true end - opts.on("-p", "--port PORT", - "use PORT (default: #{Unicorn::Const::DEFAULT_PORT})") do |p| - rackup_opts[:port] = p.to_i + opts.on("-p", "--port PORT", Integer, + "use PORT (default: #{Unicorn::Const::DEFAULT_PORT})") do |port| + rackup_opts[:port] = port rackup_opts[:set_listener] = true end |