Parse spec arguments using yargs library

This commit is contained in:
Kevin Sawicki 2015-12-10 10:33:18 -08:00
parent 1683dd6197
commit a42fa5d5c2
5 changed files with 8 additions and 7 deletions

View file

@ -42,7 +42,8 @@ ipcMain.on('echo', function(event, msg) {
event.returnValue = msg;
});
if (process.argv[2] == '--ci') {
global.isCi = !!argv.ci;
if (global.isCi) {
process.removeAllListeners('uncaughtException');
process.on('uncaughtException', function(error) {
console.error(error, error.stack);