MCPcopy Create free account
hub / github.com/microsoft/typescript-go / PrintHelp

Function PrintHelp

internal/execute/tsc/help.go:19–25  ·  view source on GitHub ↗
(sys System, locale locale.Locale, commandLine *tsoptions.ParsedCommandLine)

Source from the content-addressed store, hash-verified

17}
18
19func PrintHelp(sys System, locale locale.Locale, commandLine *tsoptions.ParsedCommandLine) {
20 if commandLine.CompilerOptions().All.IsFalseOrUnknown() {
21 printEasyHelp(sys, locale, getOptionsForHelp(commandLine))
22 } else {
23 printAllHelp(sys, locale, getOptionsForHelp(commandLine))
24 }
25}
26
27func getOptionsForHelp(commandLine *tsoptions.ParsedCommandLine) []*tsoptions.CommandLineOption {
28 // Sort our options by their names, (e.g. "--noImplicitAny" comes before "--watch")

Callers 1

tscCompilationFunction · 0.92

Calls 5

printEasyHelpFunction · 0.85
getOptionsForHelpFunction · 0.85
printAllHelpFunction · 0.85
IsFalseOrUnknownMethod · 0.80
CompilerOptionsMethod · 0.65

Tested by

no test coverage detected