1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Fix -x command line option (it's :lock, not :mutex)

This commit is contained in:
Ryan Tomayko 2009-03-24 01:25:14 -07:00
parent c156c68b1c
commit 22e1d8c5a2

View file

@ -13,7 +13,7 @@ module Sinatra
if run? && ARGV.any?
require 'optparse'
OptionParser.new { |op|
op.on('-x') { set :mutex, true }
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 }