Ignore --help and -? in tsc init generated compilerOptions (#50628)

* Ignore --help and -? in `tsc init` generated compilerOptions

* Disregard -?

* Remove unused fixture
This commit is contained in:
Amit Dahan authored and GitHub committed 2022-09-07 12:43:16 -07:00
1 parent bb6f36f7c8
commit ab831d0180
4 files changed
+214 -1

No files matched your search

+3
View File
@@ -192,6 +192,7 @@ namespace ts {
shortName: "h",
type: "boolean",
showInSimplifiedHelpView: true,
isCommandLineOnly: true,
category: Diagnostics.Command_line_Options,
description: Diagnostics.Print_this_message,
defaultValueDescription: false,
@@ -200,6 +201,8 @@ namespace ts {
name: "help",
shortName: "?",
type: "boolean",
isCommandLineOnly: true,
category: Diagnostics.Command_line_Options,
defaultValueDescription: false,
},
{