From: Jeff Schwab Date: 2009-05-10T23:20:11+09:00 Subject: Re: rake variables Jeff Schwab wrote: > (1) Is there any way to set rake options from the within the Rakefile, > as though they had been specified on the command-line? The short answer to this is no. The long answer is that you can use rake as a library, and within your "rake replacement" script, preconfigure Rake.application.options however you so choose. I've just patched rake with support for a RAKEOPT environment variable: http://github.com/jeffs/rake/tree/master $ echo 'task :default do |t| puts t.name end' > Rakefile $ rake (in /Users/jeff) default $ RAKEOPT=-s rake default $