Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

server command help message issue

#2685

If we run the command "script/server --help" it shows us a beautiful help message like the following,


$ script/server --help Usage: server [options]

{mkd-extraction-240c7075d56291c8799d0c0fc57c8a77}

It also shows the defaults for each of the options. Like for --port it says, 'Default: 3000'.
These defaults are defined in the 'options' hash in rails/railties/lib/commands/server.rb


options = {
:Port => 3000, :Host => "0.0.0.0", :environment => (ENV['RAILS_ENV'] || "development").dup, :config => RAILS_ROOT + "/config.ru", :detach => false, :debugger => false, :path => '/' }

If we change some values in the 'options' hash, we change the defaults and it should reflect in the help message. But it does not as these help texts are hardcoded there. As an example for --port, the help message is: "Default: 3000" whereas it should be "Default: #{options[:Port]}".

Thanks.

Reported by anupom syam · May 20th, 2009 @ 10:18 PM

State: resolved
Milestone: 3.0.2
Assigned to: josh josh
Importance: none

Activity

  1. anupom syam
    anupom syam
    • Tag changed from command, help, railties, script, server to command, help, patch, railties, script, server

    May 20th, 2009 @ 10:19 PM

  2. josh
    josh
    • State changed from new to open
    • Milestone cleared.

    May 25th, 2009 @ 05:27 PM

  3. Repository
  4. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM