Add --version

This commit is contained in:
Bryan Ashby 2016-01-03 17:57:57 -07:00
parent 10690e74e1
commit 4b42340c5f
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,10 @@ function main() {
process.exitCode = ExitCodes.SUCCESS; process.exitCode = ExitCodes.SUCCESS;
if(true === argv.version) {
return console.info(require('./package.json').version);
}
if(0 === argv._.length || if(0 === argv._.length ||
'help' === argv._[0]) 'help' === argv._[0])
{ {