[Rake-devel] Could the usage message mention setting variables as well as tasks

Murray Bishop murray_bishop at yahoo.com.au
Thu Jun 28 18:35:27 EDT 2007

Hello there,

I've just started using rake. I really like it. Thanks!

Yesterday, I was wanting to pass in the name of an executable to run, so I did 

rake --help

and didn't see a way to get it in. After a while, I saw in rake.rb

if arg =~ /^(\w+)=(.*)$/
          ENV[$1] = $2

and then I knew how to do it.

I'm writing to say that it would have helped me if the usage message was a bit different.
Here's a suggested change relative to the trunk

Index: lib/rake.rb
--- lib/rake.rb    (revision 602)
+++ lib/rake.rb    (working copy)
@@ -1907,7 +1907,7 @@
     # Display the program usage line.
     def usage
-      puts "rake [-f rakefile] {options} targets..."
+      puts "Usage: rake [option ...] [{ VAR=VALUE | taskname } ...]"
     # Display the rake command line help.

Thanks again,
Murray Bishop

      ____________________________________________________________________________________ Yahoo!7 Mail has just got even bigger and better with unlimited storage on all webmail accounts.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rake-devel/attachments/20070628/db15bf15/attachment.html 

More information about the Rake-devel mailing list