aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2010-02-09 21:03:18 +0700
committerJosé Valim <jose.valim@gmail.com>2010-02-10 08:08:27 +0100
commitf337ebc308b95671ba8620a0cc56f75c4fb11e15 (patch)
tree266e894ccee0bb4e856e71d55a66a3ed69ccaf26 /railties/lib
parentaf22c5b16a0f138969221e5a17fc159efb5ae347 (diff)
downloadrails-f337ebc308b95671ba8620a0cc56f75c4fb11e15.tar.gz
rails-f337ebc308b95671ba8620a0cc56f75c4fb11e15.tar.bz2
rails-f337ebc308b95671ba8620a0cc56f75c4fb11e15.zip
Add default values to output of 'rails server -h', hardcoded as Rack::Server did since options doesn't have any data at the time of parsing arguments [#3910 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/commands/server.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb
index c27214d3c8..281e4da3d2 100644
--- a/railties/lib/rails/commands/server.rb
+++ b/railties/lib/rails/commands/server.rb
@@ -11,16 +11,16 @@ module Rails
opt_parser = OptionParser.new do |opts|
opts.banner = "Usage: rails server [options]"
opts.on("-p", "--port=port", Integer,
- "Runs Rails on the specified port.", "Default: #{options[:Port]}") { |v| options[:Port] = v }
+ "Runs Rails on the specified port.", "Default: 3000") { |v| options[:Port] = v }
opts.on("-b", "--binding=ip", String,
- "Binds Rails to the specified ip.", "Default: #{options[:Host]}") { |v| options[:Host] = v }
+ "Binds Rails to the specified ip.", "Default: 0.0.0.0") { |v| options[:Host] = v }
opts.on("-c", "--config=file", String,
"Use custom rackup configuration file") { |v| options[:config] = v }
opts.on("-d", "--daemon", "Make server run as a Daemon.") { options[:daemonize] = true }
opts.on("-u", "--debugger", "Enable ruby-debugging for the server.") { options[:debugger] = true }
opts.on("-e", "--environment=name", String,
"Specifies the environment to run this server under (test/development/production).",
- "Default: #{options[:environment]}") { |v| options[:environment] = v }
+ "Default: development") { |v| options[:environment] = v }
opts.separator ""