(sys System, locale locale.Locale, commandLine *tsoptions.ParsedCommandLine)
| 17 | } |
| 18 | |
| 19 | func 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 | |
| 27 | func getOptionsForHelp(commandLine *tsoptions.ParsedCommandLine) []*tsoptions.CommandLineOption { |
| 28 | // Sort our options by their names, (e.g. "--noImplicitAny" comes before "--watch") |
no test coverage detected