From 89eeeda5754b815e8c92fc93859e33ae80ad7af3 Mon Sep 17 00:00:00 2001 From: Talles L Date: Fri, 13 Dec 2013 03:25:03 -0200 Subject: [PATCH] Solves #35 --- bin/nexe | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/nexe b/bin/nexe index 4af18e6..f3e297f 100755 --- a/bin/nexe +++ b/bin/nexe @@ -25,6 +25,10 @@ options('t', { alias: 'temp', default: '/tmp/nexe', description: 'The path to store node.js sources' +}). +options('v', { + alias: 'version', + description: 'Display version number' }); var argv = cli.argv; @@ -33,6 +37,10 @@ var argv = cli.argv; if(argv.h || argv.help) { cli.showHelp(); process.exit(); +} else if (argv.v || argv.version) { + var pkginfo = require('../package.json'); + console.log(pkginfo.version); + process.exit(); }