/*
 * grunt-load-options
 * https://github.com/chriszarate/grunt-load-options
 *
 * Copyright (c) 2013 Chris Zarate
 * Licensed under the MIT license.
 */

'use strict';

var requireDirectory = require('require-directory');

module.exports = function(grunt) {
  grunt.initConfig(requireDirectory(module, './grunt/options'));
  grunt.loadTasks('./grunt/tasks');
};


@@ -257,27 +257,51 @@
 ) %7B%0A
+%0A
   
-grunt.initConfig(
+// Load config options.%0A  var options = 
 requ
@@ -339,16 +339,241 @@
 ptions')
+;%0A%0A  // Resolve options expressed as functions.%0A  Object.keys(options).forEach(function(name) %7B%0A    if(typeof options%5Bname%5D === 'function') %7B%0A      options%5Bname%5D = options%5Bname%5D(grunt);%0A    %7D%0A  %7D);%0A%0A  grunt.initConfig(options
 );%0A  gru
@@ -607,8 +607,8 @@
 ');%0A
+%0A
 %7D;%0A
-%0A

Resolve options expressed as functions.