Dear all,

I have been wanting to do something like the following with the new Rake task arguments, but it wasn't previously possible.

task :my_task, :task_arg do |t, args|
  options = { :task_arg => "default_val"}
  args = options.merge(args)
  ...
  etc.
end

Here is a patch with updated tests to allow the above.

I hope this is considered a good thing to do, as it really makes life a lot easier when using task arguments.

Cheers,
-Adam

Attachment: merge_task_arguments.patch
Description: Binary data


_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel

Reply via email to