Search code examples
antnantrakefilerake-task

Command to display all descriptions of rakefile tasks?


I know in Ant / Nant you can pass an argument like -projecthelp to get a list of avaialbe targets with descriptions.

Is there a similar command-line argument for doing this with a rakefile's tasks?

Also is there a way to generate documentation from the rakefile itself?


Solution

  • rake -T lists tasks rake --help shows other options

    They are not necessarily 'targets' in Rakefiles though, they are just actions. Look at RDoc for documenting Ruby code