MCPcopy Index your code
hub / github.com/cameri/nostream / parseBatchSize

Function parseBatchSize

src/import-events.ts:50–58  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

48}
49
50const parseBatchSize = (value: string): number => {
51 const parsedValue = Number(value)
52
53 if (!Number.isInteger(parsedValue) || parsedValue <= 0) {
54 throw new Error(`Invalid --batch-size value: ${value}`)
55 }
56
57 return parsedValue
58}
59
60export const parseCliArgs = (args: string[]): CliOptions => {
61 let batchSize = DEFAULT_BATCH_SIZE

Callers 1

parseCliArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected