module Rake::FileUtilsExt

def rake_merge_option(args, defaults)

Merge the given options with the default values.
def rake_merge_option(args, defaults)
  if Hash === args.last
    defaults.update(args.last)
    args.pop
  end
  args.push defaults
  args
end