This project is archived and is in readonly mode.
Add defaults to `rails server -h`
Reported by Prem Sichanugrist (sikachu) | February 9th, 2010 @ 02:21 PM | in 3.0.2
It seems like on calling rails server -h
, those
defaults values are left blank:
Sikachus-Notebook:test_edge sikachu$ rails server -h
Usage: rails server [options]
-p, --port=port Runs Rails on the specified port.
Default:
-b, --binding=ip Binds Rails to the specified ip.
Default:
-c, --config=file Use custom rackup configuration file
-d, --daemon Make server run as a Daemon.
-u, --debugger Enable ruby-debugging for the server.
-e, --environment=name Specifies the environment to run this server under (test/development/production).
Default:
-h, --help Show this help message.
Exiting
It seems like options
hash that passed to
OptionParser.new
is empty, so those defaults would
just left blank. I saw that in Rack::Server
they
actually hardcode the default values, so I think it would be ok to
hard-code those data in here too.
Comments and changes to this ticket
-
Repository February 10th, 2010 @ 07:17 AM
(from [f337ebc308b95671ba8620a0cc56f75c4fb11e15]) 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
http://github.com/rails/rails/commit/f337ebc308b95671ba8620a0cc56f7... -
Prem Sichanugrist (sikachu) February 10th, 2010 @ 07:21 AM
- State changed from open to resolved
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
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
- 3910 Add defaults to `rails server -h` (from [f337ebc308b95671ba8620a0cc56f75c4fb11e15]) Add def...