MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseScenario

Function parseScenario

src/ink/replPerfProfile.tsx:14–23  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

12}
13
14function parseScenario(argv: string[]): ReplPerfScenarioId {
15 const [scenario] = argv
16 if (
17 !scenario ||
18 !(REPL_PERF_SCENARIO_IDS as readonly string[]).includes(scenario)
19 ) {
20 usage()
21 }
22 return scenario as ReplPerfScenarioId
23}
24
25const scenario = parseScenario(process.argv.slice(2))
26const result = await runReplPerfScenario(scenario)

Callers 1

Calls 1

usageFunction · 0.70

Tested by

no test coverage detected