From: Michael Guterl Date: 2008-10-23T01:04:29+09:00 Subject: Re: Rake: How do I Override Var's Used by a Rule? On Wed, Oct 22, 2008 at 11:55 AM, Brock Rycenga wrote: > > This is really starting to feel like I am having a conversation with > myself... > > Even if this is the correct way to do this, it would be really nice to > know how to override var's from the command line. For example, with > make, I could do the following: > > make -f mymakefile OPT1="new_val" OPT2="over_new_val" mytarget > > This would override value for OPT1 and OPT2 in the makefile. Is there > something equivalent in rake? > OPT1 = ENV['OPT1'] || 'default value' On another note, top posting is discouraged on this list. HTH, Michael Guterl