src/engine/inject/arguments.js
function injectArguments (funcs, task, args) {
  function getArgument (index) {
    return args[index]
  }

  /**
   * Inject arguments.
   */

  function inject (taskKey) {
    var funcName = task[taskKey]

    if (funcName === 'arguments') {
      funcs[funcName] = function getArguments () { return args }
    } else {
      var arg = regexArgument.exec(funcName)

      if (arg) {
        funcs[funcName] = getArgument.bind(null, arg[1])
      }
    }
  }

  Object.keys(task)
    .forEach(inject)
}
function injectArguments (funcs, task, args) {
  function getArgument (index) {
    return args[index]
  }

  /**
   * Inject arguments.
   */

  function inject (taskKey) {
    var funcName = task[taskKey]

    if (funcName === 'arguments') {
      funcs[funcName] = function getArguments () { return args }
    } else {
      var arg = regexArgument.exec(funcName)

      if (arg) {
        funcs[funcName] = getArgument.bind(null, arg[1])
      }
    }
  }

  Object.keys(task)
    .forEach(inject)
}
function injectArguments ( funcs , task , args ) { function getArgument ( index ) { return args [ index ] } /**
   * Inject arguments.
   */ function inject ( taskKey ) { var funcName = task [ taskKey ] if ( funcName === 'arguments' ) { funcs [ funcName ] = function getArguments ( ) { return args } } else { var arg = regexArgument . exec ( funcName ) if ( arg ) { funcs [ funcName ] = getArgument . bind ( null , arg [ 1 ] ) } } } Object . keys ( task ) . forEach ( inject ) }
Inject functions to retrieve arguments.

@param {Object} funcs reference
@param {Object} task
@param {Object} args
Inject functions to retrieve arguments .