Skip to content

Commit ce6a97a

Browse files
authored
Note that tsc fails with certain argument options
Documenting the conclusion of microsoft/TypeScript#18581
1 parent 9dd5aa4 commit ce6a97a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pages/Compiler Options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Option | Type | Default
8585

8686
* <sup>[1]</sup> These options are experimental.
8787
* <sup>[2]</sup> These options are only allowed in `tsconfig.json`, and not through command-line switches.
88+
* Due to a limitation in the argument parser, `tsc` will [fail](https://github.com/Microsoft/TypeScript/issues/18581) on the command line if its last argument is one that can take multiple options (like `--types`) but none are passed. As a workaround you can add another argument at the end, e.g. `tsc --types --pretty`.
8889

8990
## Related
9091

0 commit comments

Comments
 (0)