Skip to content
Browse files

converting env from command-line to symbol. [cypher]

This fixes the problem when running an app with -e development
  • Loading branch information...
1 parent cb8441e commit 87f8cd3937973090b84876996cc7e430bd5d744b @bmizerany bmizerany committed Jun 22, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra.rb
View
2 lib/sinatra.rb
@@ -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/ })

0 comments on commit 87f8cd3

Please sign in to comment.
Something went wrong with that request. Please try again.