Boolean CLI options in standard "--someFlag=someValue" form fail with "error TS5023: Unknown compiler option..." #52655
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Bug Report
tl;dr: User's expect to assign CLI flag options with an equal sign. E.g.
--flag=value
. That this fails intsc
with an unobvious error is confusing. It misleads users into thinking there isn't a way of disabling options from the command line. For example:The form above is wide-spread, especially within the JS community ...
🔎 Search Terms
error TS5023: Unknown compiler option
🕗 Version & Regression Information
Boolean CLI options were first introduced in #11798 , but have never supported the standard
--flag=value
format🙁 Actual behavior
Providing boolean CLI options like
--incremental=false
,--noEmit=false
, and so on all result in aTS5023: Unknown compiler option
error.🙂 Expected behavior
Using the standard double-dash notation of "--flagName=flagValue" (.e.g
--incremental=false
) should work as expected.The text was updated successfully, but these errors were encountered: