   options = argParser.parseArgs()
 
   if options.search
-    singleProcessSearchMain(options)
+    if options.multiprocess
+      multiProcessSearchMain(options)
+    else
+      singleProcessSearchMain(options)
   else
     singleProcessScanMain(options)
 


  scanner.scan()

buildRegex = (pattern) ->
  new RegExp(pattern, 'gi')


_ = require 'underscore'
{ArgumentParser} = require 'argparse'
PathSearcher = require './path-searcher'
PathScanner = require './path-scanner'
path = require "path"

MAX_CONCURRENT_SEARCH = 20

###
Single Process
###

singleProcessSearch = (regex, scanner, searcher, doneCallback) ->
  finishedScanning = false
