Skip to content

Commit

Permalink
fix crash on --help or --version
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Nov 6, 2017
1 parent 67e59c9 commit d378496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ OPTIONS:
--help : Show this help
--version : Show versions of NyaoVim, Electron, Chrome, Node.js, and V8
`);
app.quit();
app.exit();
}

if (process.argv.indexOf('--version') !== -1) {
Expand All @@ -24,7 +24,7 @@ if (process.argv.indexOf('--version') !== -1) {
console.log(`${app.getName()} version ${app.getVersion()}
${versions}
`);
app.quit();
app.exit();
}

process.on('unhandledRejection', (reason: string, p: Promise<any>) => {
Expand Down

0 comments on commit d378496

Please sign in to comment.