From 22e1d8c5a2ab4fb9e16a8e2fa0b47c2860ac6afe Mon Sep 17 00:00:00 2001 From: Ryan Tomayko Date: Tue, 24 Mar 2009 01:25:14 -0700 Subject: [PATCH] Fix -x command line option (it's :lock, not :mutex) --- lib/sinatra/main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra/main.rb b/lib/sinatra/main.rb index 579684cd..ee7f5b81 100644 --- a/lib/sinatra/main.rb +++ b/lib/sinatra/main.rb @@ -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 }