Commit c78e9458 authored by Jérémy Lal's avatar Jérémy Lal Committed by isaacs

Add -v, --version switch to command line

parent 6449c764
......@@ -40,6 +40,9 @@ args.forEach(function (arg, i) {
usage()
else
console.error('Unrecognized arg: %j', arg)
if (arg === '-v' || arg === '--version')
console.log(require('../package.json').version)
})
function usage () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment