diff options
author | anupom syam <anupom.syam@gmail.com> | 2009-05-27 14:45:16 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-27 14:45:16 -0500 |
commit | 746f3860c197d351ab8f2c860d857b139ce8cbf8 (patch) | |
tree | 6102a6a8de84b25362ceef15e2b1ae64311467d2 /railties/lib | |
parent | 5679bf64d515e3c0d343c3562db09e9c7ff422fc (diff) | |
download | rails-746f3860c197d351ab8f2c860d857b139ce8cbf8.tar.gz rails-746f3860c197d351ab8f2c860d857b139ce8cbf8.tar.bz2 rails-746f3860c197d351ab8f2c860d857b139ce8cbf8.zip |
server command help inconsistency fix [#2685 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/server.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/commands/server.rb b/railties/lib/commands/server.rb index 91ac7752ef..1b6505f2dc 100644 --- a/railties/lib/commands/server.rb +++ b/railties/lib/commands/server.rb @@ -17,22 +17,22 @@ options = { :config => RAILS_ROOT + "/config.ru", :detach => false, :debugger => false, - :path => nil + :path => '/' } ARGV.clone.options do |opts| opts.on("-p", "--port=port", Integer, - "Runs Rails on the specified port.", "Default: 3000") { |v| options[:Port] = v } + "Runs Rails on the specified port.", "Default: #{options[:Port]}") { |v| options[:Port] = v } opts.on("-b", "--binding=ip", String, - "Binds Rails to the specified ip.", "Default: 0.0.0.0") { |v| options[:Host] = v } + "Binds Rails to the specified ip.", "Default: #{options[:Host]}") { |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[:detach] = 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: development") { |v| options[:environment] = v } - opts.on("-P", "--path=/path", String, "Runs Rails app mounted at a specific path.", "Default: /") { |v| options[:path] = v } + "Default: #{options[:environment]}") { |v| options[:environment] = v } + opts.on("-P", "--path=/path", String, "Runs Rails app mounted at a specific path.", "Default: #{options[:path]}") { |v| options[:path] = v } opts.separator "" |