pass flags directly, not as object property

This commit is contained in:
AJ ONeal 2018-06-28 03:30:29 -06:00
parent 7301ec1125
commit ac1e46da1f
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function askForConfig(answers, mainCb) {
var fs = require('fs'); var fs = require('fs');
var ttyname = '/dev/tty'; var ttyname = '/dev/tty';
var stdin = useTty ? fs.createReadStream(ttyname, { var stdin = useTty ? fs.createReadStream(ttyname, {
fd: fs.openSync(ttyname, { flags: fs.constants.O_WRONLY | fs.constants.O_NOCTTY }) fd: fs.openSync(ttyname, fs.constants.O_WRONLY | fs.constants.O_NOCTTY)
}) : process.stdin; }) : process.stdin;
var readline = require('readline'); var readline = require('readline');
var rl = readline.createInterface({ var rl = readline.createInterface({