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

Function getRequiredFlag

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

Source from the content-addressed store, hash-verified

52}
53
54function getRequiredFlag(argv: string[], name: string): string {
55 const value = getFlagValue(argv, name);
56 if (!value) {
57 throw new Error(`Missing required flag ${name}`);
58 }
59 return value;
60}
61
62function buildRunnerPaths(datasetPath: string, outputDirArg?: string): RunnerPaths {
63 const datasetBaseName = datasetPath

Callers 1

parseRunnerConfigFunction · 0.85

Calls 1

getFlagValueFunction · 0.85

Tested by

no test coverage detected