 #  2. dirator = require('dirator')
 #     dirator options
 #  3. require('dirator')(options)
-module.exports = (args...) -> new Dirator(args...).run()
+module.exports = (options, done) -> new Dirator(options, done).run()
 module.exports.Dirator = Dirator
 
 # Provide convenience functions prebuilt with mode:

      acceptString: @_acceptString
      acceptPath: @_acceptPath

      each: (result) => # these also increment the results.found values

        # call each actions with conditional '?' in case they don't exist
        action.file? result
        action.dir?  result
        action.path? result

      all: (error, result) =>

        if error? then return @emit 'done', error, result


    # TODO:
    #  adapt to use emit to send them instead of gathering it all up into arrays
    #  only when there *are* listeners. otherwise, return all the arrays.

    # hold all results info in this as we do all the work
    results = found: {}, rejected: paths:0, strings:0
