Fix how we filter out atom-shell switches in process.argv.
This commit is contained in:
parent
0df59e2714
commit
2634328720
3 changed files with 10 additions and 6 deletions
|
@ -8,11 +8,7 @@ app.on('window-all-closed', function() {
|
|||
app.quit();
|
||||
});
|
||||
|
||||
// Pick out switches appended by atom-shell.
|
||||
var endMark = process.argv.indexOf('--no-more-atom-shell-switches');
|
||||
process.execArgv = process.argv.splice(1, endMark)
|
||||
|
||||
var argv = optimist(process.argv.slice(1)).argv;
|
||||
var argv = optimist(process.argv.slice(1)).boolean('ci').argv;
|
||||
|
||||
// Start the specified app if there is one specified in command line, otherwise
|
||||
// start the default app.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue