 path = require 'path'
 fs = require 'fs-plus'
 optimist = require 'optimist'
-Highlights = require './highlights'
+Textlex = require './textlex'
 
 module.exports = ->
   cli = optimist.describe('h', 'Show this message').alias('h', 'help')

    fileContents = ''
    process.stdin.on 'data', (chunk) -> fileContents += chunk.toString()
    process.stdin.on 'end', ->
      html = new Highlights().highlightSync({filePath, fileContents, scopeName: cli.argv.scope})
      if outputPath
        fs.writeFileSync(outputPath, html)
      else

      process.exit(1)
      return

    html = new Textlex().lexSync({filePath, scopeName: cli.argv.scope})
    if outputPath
      fs.writeFileSync(outputPath, html)
    else
