immediately ask for correction
This commit is contained in:
parent
0c5c40e4a4
commit
5d8c64df83
@ -236,14 +236,13 @@ export class InteractiveOptions extends Persistent {
|
|||||||
process.exit (0);
|
process.exit (0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let invalid = false;
|
|
||||||
for (const opt of this.options) {
|
for (const opt of this.options) {
|
||||||
|
while (!opt.filled) {
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
await this.prompt (opt);
|
await this.prompt (opt);
|
||||||
if (opt.filled === false)
|
if (!opt.filled)
|
||||||
invalid = true;
|
console.log ('input was invalid');
|
||||||
}
|
}
|
||||||
if (invalid)
|
}
|
||||||
await this.get_interactive_options ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user