[Rake-devel] Suggestion: allow passing of extra command-line args
to the task
gsinclair at soyabean.com.au
Mon Jun 14 08:24:05 EDT 2004
On Monday, June 14, 2004, 9:20:03 PM, Martin wrote:
>> What I'm getting at is this. If rake did support the CL syntax you
>> describe, I would still do this instead for clarity:
>> rake clean
>> rake html -f other.txt
>> rake test -f test.in
>> rake make
>> rake make-install
>> But looking at the above, I think the addition of -f does serve to
>> visually distinguish between the target and its arguments.
>> Conclusion: I like the -f idea, but see no need to introduce the \;.
> True, for much the same reason that people tend to have one ruby statement per
> line, even though the language allows semicolons. But by the same token, if you
> don't want to use them, you don't need to. I just like the \; for generality
> (i.e. you can have multiple targets, and each target can have multiple
> arguments). If nothing else, letting them all be on one line lets you uparrow
> and repeat the command.
I simply cannot argue against such logic. Brilliant :)
I guess the question now is: is there a slightly less ugly syntax,
pitched at the same level of generality?
Actually, the main question is: what does Jim think of all this?
More information about the Rake-devel