 
 
 # Main
-args = process.argv.splice 2 # Ignore "node" and script name args
-root = if args[0]? then path.resolve args[0] else process.cwd()
-docs = projectDocs root
+projects = process.argv.splice 2 # Ignore "node" and script name args
+if projects.length == 0
+  projects = [ process.cwd() ] # Handle current folder by default
+docs = projectsDocs projects
 printDocs docs
    if extractor?
      source = fs.readFileSync filePath, "utf8"
      { className: className, comments: comments } = extractor.extract source
      if className?
        docs[ className ] = comments
  docs


printDocs = ( docs ) ->

  ".qui": markupDocsExtractor


# Return the documentation for all files below the given root.
projectDocs = ( root ) ->
  docs = {}
  walk root, ( filePath ) ->
