#!/usr/bin/env node

var program = require('commander'),
    Hash = require('./../index'),
    pkg = require('./../package.json');

program
    .version(pkg.version)
    .usage("<hash-function> <data>")
    .parse(process.argv);

console.log(new Hash(program.args[0], program.args[1]).digest());

@@ -205,30 +205,219 @@
    .
-parse(process.argv);%0A%0A
+option('-l, --list', 'Print all available hashing functions')%0A    .parse(process.argv);%0A%0Aif (!!program.list) %7B%0A    Hash.SUPPORTED_HASHES.forEach(function (hash) %7B%0A        console.log(hash);%0A    %7D);%0A%7D else %7B%0A    
 cons
@@ -478,8 +478,10 @@
 est());%0A
+%7D%0A

Add print list of all hashes