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.

Add defaults to `rails server -h`

#3910

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.

Reported by Prem Sichanugrist (sikachu) · February 9th, 2010 @ 02:21 PM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Repository
    Repository

    (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 Add defaults to `rails server -h` status:resolved]

    Signed-off-by: José Valim jose.valim@gmail.com
    http://github.com/rails/rails/commit/f337ebc308b95671ba8620a0cc56f7...

    February 10th, 2010 @ 07:17 AM

  2. Prem Sichanugrist (sikachu)
    Prem Sichanugrist (sikachu)
    • State changed from open to resolved

    February 10th, 2010 @ 07:21 AM

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

    October 15th, 2010 @ 11:01 PM