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 missing -h/--help flag to several rails command

#3909

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

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

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