Merge pull request #10900 from electron/issue-10877

fix: Ensure that -r isn’t considered interactive
This commit is contained in:
Felix Rieseberg 2017-10-24 17:21:08 -07:00 committed by GitHub
commit 8d1ff1c59a

View file

@ -27,8 +27,7 @@ for (let i = 0; i < argv.length; i++) {
} else if (argv[i] === '--default' || argv[i] === '-d') {
option.default = true
break
} else if (argv[i] === '--interactive' || argv[i] === '-i' ||
argv[i] === '-repl' || argv[i] === '-r') {
} else if (argv[i] === '--interactive' || argv[i] === '-i' || argv[i] === '-repl') {
option.interactive = true
} else if (argv[i] === '--test-type=webdriver') {
option.webdriver = true