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.

"rails server --help" shows help twice and without "server" in usage

#3874
henrik@Nyx ~/Sites/rails3test$ rails server --help
Usage: rails [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.
Usage: rails [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.

Note that it's repeated twice and that it says "Usage: rails [options]" but should say "Usage: rails server [options]".

Reported by Henrik Nyh · February 6th, 2010 @ 07:08 AM

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

Activity

  1. José Valim
    José Valim

    Could you please provide a patch? :)

    February 6th, 2010 @ 10:04 AM

  2. Henrik Nyh
    Henrik Nyh

    Figured it'd be a quick fix for someone more familiar with this, but sure, I'll give it a shot :)

    February 6th, 2010 @ 10:08 AM

  3. Henrik Nyh
    Henrik Nyh
    • Tag changed from docs, generators, rails3, railties, server to docs, generators, patch, rails3, railties, server

    Okay, fixed it.

    The "usage" bit was easy. The double banner was a tiny fix but took me way too long to figure out :)

    February 6th, 2010 @ 11:55 AM

  4. Repository
  5. José Valim
    José Valim
    • State changed from new to committed
    • Assigned user set to José Valim
    • Milestone cleared.

    Awesome! Thanks!

    February 6th, 2010 @ 12:04 PM

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

    October 15th, 2010 @ 11:01 PM