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);