     if err
       res.badFile = yes
       return cb err, res
-    res.stats = sloc code, path.extname(f)[1...]
+    ext = path.extname(f)[1...]
+    res.stats = sloc code, options.alias[ext] or ext
     cb null, res
 
 print = (err, result, opts, fmtOpts) ->

  .option '    --strip-colors',           'remove all color characters'
  .option '-k, --keys <keys>',            'report only numbers of the given keys', list
  .option '-d, --details',                'report stats of each analized file'

programm.parse process.argv
options.keys        = programm.keys
options.details     = programm.details

return programm.help() if programm.args.length < 1


fmts      = require './formatters'

list = (val) -> val.split ','
keyvalue = (val) -> val.split '='
object = (val) ->
  result = {}
  for split in list(val).map(keyvalue)
    [custom, original] = split
    result[custom] = original
  result
exts = ("*.#{k}" for k in sloc.extensions)

collect = (val, memo) ->
