   browser:    false
   checkLeaks: false
   compilers:  []
+  files:      []
   globals:    []
   host:       'localhost'
   port:       8080

error = (message) ->
  console.error message
  process.exit 1

    when '--recursive'
      opts.recursive = true
    else
      error 'Unrecognized option' if opt.charAt(0) is '-'
      opts.files.push opt

error 'No test files specified' unless opts.files.length

utils.findFiles opts.files, (err, files) ->
  error err if err?

  (server.createServer files, opts).listen opts.port, ->
    console.log "mocha-http running on port :#{opts.port}"

  if opts.browser
    switch os.platform()
      when 'darwin'
        exec "open http://#{opts.host}:#{opts.port}"
      when 'linux'
        exec "xdg-open http://#{opts.host}:#{opts.port}"
