From: James Britt Date: 2007-01-16T13:04:19+09:00 Subject: Re: Q: How can a Rake task know the caller's directory? Jim Weirich wrote: > You could do: > > rake com MSG="This is my log message" > > Inside of your Rakefile, ENV['MSG'] will contain your log message. > Right, but too much effort for the user. Leaves too much room for James to forget a quote or mistype the var name. > Sadly, more typing that what you have, but it works with rake instead of > against it. But isn't there a way to tell Rake to ignore any additional tasks it thinks are queued up? When I run $rake com This is my message it works fine, but at the very end rake complains that it doesn't know anything about task 'This'. Thanks, -- James Britt