     when '-m', '--minify'
       opts.minify = true
     when '-o', '--output'
-      opts.output = args.shift()
+      opts.output.push args.shift()
     when '-p', '--prelude'
       opts.prelude = args.shift()
     when '--no-prelude'

  files:   []
  include: []
  minify:  false
  output:  null
  prelude: null
  strict:  false
  watch:   false

    console.log bundle.toString opts

bundleFile = (file, moduleCache = {}) ->
  return unless file?

  _opts = clone opts
  _opts.entry       = file
  _opts.moduleCache = moduleCache
  _opts.output      = opts.output.shift()
  _opts.prelude     = false if _opts.dedupe

  unless opts.watch
    requisite.bundle _opts, (err, bundle) ->
      return postmortem.prettyPrint err if err?

      outputBundle bundle, _opts
      moduleCache = if opts.dedupe then bundle.moduleCache else {}
      bundleFile opts.files.shift(), moduleCache
  else
    requisite.watch _opts, (err, bundle, filename) ->
      return postmortem.prettyPrint err if err?

      if filename?
        console.log "#{formatDate()} - recompiling, #{filename} changed"
      else
        console.log "#{formatDate()} - compiled #{outputName bundle.normalizedPath, _opts.output}"

      outputBundle bundle, _opts
      moduleCache = if opts.dedupe then bundle.moduleCache else {}
      bundleFile opts.files.shift(), moduleCache

bundleFile opts.files.shift()
