From 4b42340c5fb611f0b7096273f46e43acc3eebfae Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 3 Jan 2016 17:57:57 -0700 Subject: [PATCH] Add --version --- oputil.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oputil.js b/oputil.js index 99b1efe6..5eef5339 100755 --- a/oputil.js +++ b/oputil.js @@ -116,6 +116,10 @@ function main() { process.exitCode = ExitCodes.SUCCESS; + if(true === argv.version) { + return console.info(require('./package.json').version); + } + if(0 === argv._.length || 'help' === argv._[0]) {