Skip to content

Commit

Permalink
converting env from command-line to symbol. [cypher]
Browse files Browse the repository at this point in the history
This fixes the problem when running an app with -e development
  • Loading branch information
bmizerany committed Jun 23, 2008
1 parent cb8441e commit 87f8cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ def self.load_default_options_from_command_line! #:nodoc:
require 'optparse'
OptionParser.new do |op|
op.on('-p port') { |port| default_options[:port] = port }
op.on('-e env') { |env| default_options[:env] = env }
op.on('-e env') { |env| default_options[:env] = env.to_sym }
op.on('-x') { default_options[:mutex] = true }
op.on('-s server') { |server| default_options[:server] = server }
end.parse!(ARGV.dup.select { |o| o !~ /--name/ })
Expand Down

0 comments on commit 87f8cd3

Please sign in to comment.