From 39f3882e0a08f0aaf596b3f07172cc8c3939c828 Mon Sep 17 00:00:00 2001 From: Dom Harrington Date: Thu, 17 May 2018 15:27:42 -0700 Subject: [PATCH] Fix --version command --- rdme.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rdme.js b/rdme.js index cb70aff55..7505e805f 100755 --- a/rdme.js +++ b/rdme.js @@ -14,7 +14,10 @@ const parseArgs = require('minimist')(process.argv.slice(2), { }); require('./cli')(parseArgs._[0], parseArgs._.slice(1), parseArgs) - .then(() => process.exit()) + .then(msg => { + if (msg) console.log(msg); + process.exit(); + }) .catch(err => { if (err) { // `err.message` is from locally thrown Error objects