This project is archived and is in readonly mode.
"rails server --help" shows help twice and without "server" in usage
Reported by Henrik Nyh | February 6th, 2010 @ 07:08 AM | in 3.0.2
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]".
Comments and changes to this ticket
-
Henrik Nyh February 6th, 2010 @ 10:08 AM
Figured it'd be a quick fix for someone more familiar with this, but sure, I'll give it a shot :)
-
Henrik Nyh February 6th, 2010 @ 11:55 AM
- 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 :)
-
Repository February 6th, 2010 @ 12:04 PM
(from [95b63c6a078527b747c99ab1c881fdfe6577518b]) Fix 'rails server -h' double help banner. Correct its usage line. [#3874 status:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/95b63c6a078527b747c99ab1c881fd... -
José Valim February 6th, 2010 @ 12:04 PM
- State changed from new to committed
- Assigned user set to José Valim
- Milestone cleared.
Awesome! Thanks!
-
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
- 3874 "rails server --help" shows help twice and without "server" in usage (from [95b63c6a078527b747c99ab1c881fdfe6577518b]) Fix 'ra...
- 3877 E.g. "rails server -e test" doesn't work, "RAILS_ENV=test rails server" does So if this triggers the issue, doing "@options && options...
- 3877 E.g. "rails server -e test" doesn't work, "RAILS_ENV=test rails server" does I can verify that 'double help banner bug' in #3874 does ...