Skip to content

Commit

Permalink
Fix --version command
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed May 17, 2018
1 parent 584c673 commit 39f3882
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rdme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39f3882

Please sign in to comment.