Parse spec arguments using yargs library
This commit is contained in:
parent
1683dd6197
commit
a42fa5d5c2
5 changed files with 8 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue