This project is archived and is in readonly mode.
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]
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
-
anupom syam May 20th, 2009 @ 10:19 PM
- Tag changed from command, help, railties, script, server to command, help, patch, railties, script, server
-
josh May 25th, 2009 @ 05:27 PM
- State changed from new to open
- Milestone cleared.
-
Repository May 27th, 2009 @ 09:02 PM
- State changed from open to resolved
(from [746f3860c197d351ab8f2c860d857b139ce8cbf8]) server command help inconsistency fix [#2685 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com
http://github.com/rails/rails/commit/746f3860c197d351ab8f2c860d857b... -
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to
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
- 2685 server command help message issue (from [746f3860c197d351ab8f2c860d857b139ce8cbf8]) server ...