[Rake-devel] Suggestion: allow passing of extra command-line args to the task

Martin DeMello martindemello at yahoo.com
Mon Jun 14 06:16:55 EDT 2004


--- Gavin Sinclair <gsinclair at soyabean.com.au> wrote:

> Rake is then called like this:
> 
>   $ rake html                 # default input, as usual
> 
>   $ rake html -- other.txt    # use specified input file
> 
> I like the fact that multiple arguments to 'rake' will result in
> multiple tasks being executed.  Using '--' is a standard way to
> indicate that no more arguments should be parsed.  Therefore, we can
> have the normal Rake behaviour, plus we can have arguments being
> passed to tasks.

How about per-target arguments, then? Maybe something like

rake clean html -f other.txt \; test -f test.in \; make make-install

where if you have a -flag, anything from there to the \; is arguments for that
target.

martin


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


More information about the Rake-devel mailing list