We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2816fde commit fae7a12Copy full SHA for fae7a12
src/compiler/commandLineParser.ts
@@ -326,9 +326,12 @@ namespace ts {
326
if (hasProperty(map, key)) {
327
options[opt.name] = map[key];
328
}
329
- else {
+ else if (opt.error) {
330
errors.push(createCompilerDiagnostic(opt.error));
331
332
+ else {
333
+ Debug.fail(`Command line option for '${opt.name}' doesn't account for invalid options.`);
334
+ }
335
336
337
else {
0 commit comments