This project is archived and is in readonly mode.

#3909 ✓resolved
Prem Sichanugrist (sikachu)

Add missing -h/--help flag to several rails command

Reported by Prem Sichanugrist (sikachu) | February 9th, 2010 @ 02:15 PM | in 3.0.2

I just realize there're severals rails command that doesn't print help or usage message on calling -h/--help. This patch will make those commands print out usage when calling with -h/--help

Those commands I found are:

* rails generate -h / rails generate --help
* rails destroy -h / rails destroy --help
* rails benchmarker -h / rails benchmarker --help
* rails profiler -h / rails profiler --help

I also update rails console -h to print out description of --irb as deprecated, since if you called rails console -h, --irb description would be left blank.

Sikachus-Notebook:test_edge sikachu$ rails console -h
Usage: console [environment] [options]
    -s, --sandbox                    Rollback database modifications on exit.
        --debugger                   Enable ruby-debugging for the console.
        --irb

Comments and changes to this ticket

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>

Attachments

Referenced by

Pages