MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getFlagValue

Function getFlagValue

packages/plugin/scripts/longmemeval/config.ts:48–52  ·  view source on GitHub ↗
(argv: string[], name: string)

Source from the content-addressed store, hash-verified

46}
47
48function getFlagValue(argv: string[], name: string): string | undefined {
49 const index = argv.indexOf(name);
50 if (index === -1) return undefined;
51 return argv[index + 1];
52}
53
54function getRequiredFlag(argv: string[], name: string): string {
55 const value = getFlagValue(argv, name);

Callers 2

getRequiredFlagFunction · 0.85
parseRunnerConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected