MCPcopy Index your code
hub / github.com/anomalyco/opencode / requiredValue

Function requiredValue

packages/console/core/script/create-api-key.ts:142–146  ·  view source on GitHub ↗
(argv: string[], index: number, arg: string)

Source from the content-addressed store, hash-verified

140}
141
142function requiredValue(argv: string[], index: number, arg: string) {
143 const value = argv[index]
144 if (!value || value.startsWith("--")) throw new Error(`Missing value for ${arg}`)
145 return value
146}

Callers 1

parseArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected