MCPcopy Create free account
hub / github.com/angular/angular / findArgument

Function findArgument

vscode-ng-language-service/server/src/cmdline_utils.ts:9–15  ·  view source on GitHub ↗
(argv: string[], argName: string)

Source from the content-addressed store, hash-verified

7 */
8
9function findArgument(argv: string[], argName: string): string | undefined {
10 const index = argv.indexOf(argName);
11 if (index < 0 || index === argv.length - 1) {
12 return;
13 }
14 return argv[index + 1];
15}
16
17function findArgumentWithDefault<T>(
18 argv: string[],

Callers 2

parseStringArrayFunction · 0.85
parseCommandLineFunction · 0.85

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected