text: #!/usr/bin/env node
  
  const fs = require('fs')
  const path = require('path')
  const program = require('commander')
  const chalk = require('chalk')
  const watch = require('../lib/watch.js')
  
  program
    .version(require('../package').version)
    .usage('<path>')
  
  program
    .arguments('<path>')
    .action(dir => {
      fs.stat(dir, (err, stats) => {
        if (err) console.log(chalk.yellow(err))
        else {
          console.log(chalk.bgMagenta.white(' lessCompile is running... '))
          watch(dir)
        }
      })
    })
  
  program
    .on('--help', () => {
      console.log()
      console.log(`  Run ${chalk.cyan(`lessCompile <command> --help`)} for detailed usage of given command.`)
      console.log()
    })
  
  program.parse(process.argv)
  