From 584c673c7a5c1a4326430df70185947f0edd26cf Mon Sep 17 00:00:00 2001 From: Marc Cuva Date: Fri, 11 May 2018 17:50:35 -0700 Subject: [PATCH] Console.log version --- cli.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 1cdc0e836..204aaa6c9 100644 --- a/cli.js +++ b/cli.js @@ -28,7 +28,10 @@ function load(command = 'help') { } module.exports = function(cmd, args, opts = {}) { - if (opts.version && !cmd) return Promise.resolve(version); + if (opts.version && !cmd) { + console.log(version); + return Promise.resolve(version); + } try { const command = load(opts.help ? 'help' : cmd);