R – Suppress rake in directory message


When I run rake, it always starts with a message like this:

> rake
(in /Users/peter/srcdir)
... standard output here ...

I'd like to remove the (in /Users/peter/srcdir) portion. You can do it with rake -s, but then you don't get the output you want.

Is there any way to disable this current directory announcement but not the rest? Ideal would be some configuration file like ~/.rakerc, or an option in the Rakefile itself.

Best Solution

Doesn't look like it -- Line 475 of application.rb:

puts "(in #{Dir.pwd})" unless options.silent

You could try requesting it on the mailing list.