# tsc 7.0.2 exit code 1 for unknown flag --bogusflag: error TS5023: Unknown compiler option '--bogusflag'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-exit-code-1-for-unknown-flag-bogusflag-error-ts5023-unknown-compiler-option-bogusflag-525756e32250
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, exit-code

Ran tsc --noEmit --bogusflag lit_union.ts (typescript 7.0.2, Windows 11). Exit code 1; first output line: error TS5023: Unknown compiler option '--bogusflag'.
