(argv: string[])
| 74 | } |
| 75 | |
| 76 | export function parseCommandLine(argv: string[]): CommandLineOptions { |
| 77 | return { |
| 78 | help: hasArgument(argv, '--help'), |
| 79 | logFile: findArgument(argv, '--logFile'), |
| 80 | logVerbosity: findArgument(argv, '--logVerbosity'), |
| 81 | logToConsole: hasArgument(argv, '--logToConsole'), |
| 82 | ngProbeLocations: parseStringArray(argv, '--ngProbeLocations'), |
| 83 | tsProbeLocations: parseStringArray(argv, '--tsProbeLocations'), |
| 84 | tsdk: findArgument(argv, '--tsdk') ?? null, |
| 85 | includeAutomaticOptionalChainCompletions: hasArgument( |
| 86 | argv, |
| 87 | '--includeAutomaticOptionalChainCompletions', |
| 88 | ), |
| 89 | includeCompletionsWithSnippetText: hasArgument(argv, '--includeCompletionsWithSnippetText'), |
| 90 | includeCompletionsForModuleExports: parseBooleanArgument( |
| 91 | argv, |
| 92 | '--includeCompletionsForModuleExports', |
| 93 | ), |
| 94 | forceStrictTemplates: hasArgument(argv, '--forceStrictTemplates'), |
| 95 | disableBlockSyntax: hasArgument(argv, '--disableBlockSyntax'), |
| 96 | disableLetSyntax: hasArgument(argv, '--disableLetSyntax'), |
| 97 | angularCoreVersion: findArgument(argv, '--angularCoreVersion'), |
| 98 | suppressAngularDiagnosticCodes: findArgument(argv, '--suppressAngularDiagnosticCodes'), |
| 99 | useClientSideFileWatcher: hasArgument(argv, '--useClientSideFileWatcher'), |
| 100 | }; |
| 101 | } |
| 102 | |
| 103 | export function generateHelpMessage(argv: string[]) { |
| 104 | return `Angular Language Service that implements the Language Server Protocol (LSP). |
no test coverage detected