jimweirich/rake — pull request #99 by njonsson (2011-12-22 23:09:05+00:00)
Title: Add '--include-hidden-tasks' option to enhance '-T' and '-D'

Since we can invoke tasks that do not have descriptions, we ought to be able to display and describe them, too.

The [Cape](http://github.com/njonsson/cape) project would really benefit from this feature, since Cape uses shell integration to enumerate Rake tasks. (Why does Cape resort to shell integration instead of calling the Rake API? Because Cape provides Capistrano-to-Rake integration, and must therefore run under the auspices of Capistrano, whose DSL treads on Rake’s toes.)

The new `--include-hidden-tasks` command-line option has no effect by itself. But when it is specified together with `-T` (`--tasks`) or `-D` (`--describe`), it causes Rake to display tasks that lack descriptions as well as those that have descriptions.