lib/sinatra/main.rb in sinatra-1.0.a vs lib/sinatra/main.rb in sinatra-1.0.b

- old
+ new

@@ -15,10 +15,10 @@ 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('-h addr') { |val| set :host, val } + op.on('-o addr') { |val| set :bind, val } }.parse!(ARGV.dup) end end at_exit { Application.run! if $!.nil? && Application.run? }