Skip to content

Commit

Permalink
cli: prevent brutal exit when the process is doing async work
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-cbon committed Mar 13, 2017
1 parent 759a334 commit 8e01650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ if (command === 'makehtml') {
require('./makehtml.cmd.js').run();
} else {
yargs.showHelp();
process.exit(0);
}

if (argv.help) {
yargs.showHelp();
process.exit(0);
}
process.exit(0);

0 comments on commit 8e01650

Please sign in to comment.