This project is archived and is in readonly mode.

#2685 ✓resolved
anupom syam

server command help message issue

Reported by anupom syam | May 20th, 2009 @ 10:18 PM | in 3.0.2

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages