diff --git a/bin/nexe b/bin/nexe index 8b13eb4..6230898 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(); }