Search code examples
rubyrake

rake --tasks full description (not cut)


Maybe it's one of those code 18,

but when I run rake -T on my Rakefile, the long descriptions of my tasks are always cut. Is there any way to display the full description without having to make the desc shorter?

Thanks


Solution

  • The format is slightly different (description starts on the next line instead of as a comment on the current line), but this will give you the full descriptions:

    rake -D
    

    Also, if you really want the other format, you can pipe the output to cat instead:

    rake -T | cat