Fix how we filter out atom-shell switches in process.argv.

This commit is contained in:
Cheng Zhao 2014-01-31 16:40:20 +08:00
parent 0df59e2714
commit 2634328720
3 changed files with 10 additions and 6 deletions

View file

@ -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.