 
   fs.writeFile outputFile, $.html(), (err) ->
     if err
-      console.log '\x1b[31m' + 'cannot write to `' + outputFile + '`\x1b[0m'
+      logErr "cannot write to `#{ outputFile }`"
       process.exit 1
 
-    console.log '\x1b[32m' + 'output to `' + outputFile + '`\x1b[0m'
+    log "output to `#{ outputFile }`"
 
 
 init()

        path = $el.attr 'href'
        fs.readFile path, (err, data) ->
          if err
            console.log '\x1b[31m' + 'cannot read `' + path + '`\x1b[0m'
            process.exit 1

          $el.after("<style>#{ cleanCss.process data.toString() }</style>").remove()

initialDir = process.cwd()
$ = fileName = null
len = completed = 0
log        = console.log.bind   console, '\x1b[32m  '
logErr     = console.error.bind console, '\x1b[31m  '


init = ->
  if args.length <= 2
    logErr 'please pass an html file'
    process.exit 1

  filePath = args[2]
