MCPcopy Index your code
hub / github.com/simstudioai/sim / parseArgs

Function parseArgs

apps/sim/scripts/backfill-trace-spans.ts:57–68  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

55}
56
57function parseArgs(argv: string[]): Options {
58 const maxBatchesArg = argv.find((a) => a.startsWith('--max-batches='))
59 const maxBatches = maxBatchesArg
60 ? Number.parseInt(maxBatchesArg.slice('--max-batches='.length), 10)
61 : Number.POSITIVE_INFINITY
62
63 if (Number.isNaN(maxBatches) || maxBatches <= 0) {
64 throw new Error('--max-batches must be a positive integer')
65 }
66
67 return { maxBatches }
68}
69
70/** Externalize inline heavy execution_data into the large-value store. */
71async function backfillTraceStorage(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected