lib/sinatra/main.rb in sinatra-1.2.6 vs lib/sinatra/main.rb in sinatra-1.2.7

- old
+ new

@@ -14,10 +14,10 @@ require 'optparse' OptionParser.new { |op| op.on('-x') { set :lock, true } op.on('-e env') { |val| set :environment, val.to_sym } op.on('-s server') { |val| set :server, val } - op.on('-p port') { |val| set :port, val.to_i } + op.on('-p port') { |val| set :port, Integer(val) } op.on('-o addr') { |val| set :bind, val } }.parse!(ARGV.dup) end end