MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / parseCapacityValue

Function parseCapacityValue

source code/bridge/bridgeMain.ts:1731–1737  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

1729}
1730
1731function parseCapacityValue(raw: string | undefined): number | string {
1732 const n = raw === undefined ? NaN : parseInt(raw, 10)
1733 if (isNaN(n) || n < 1) {
1734 return `--capacity requires a positive integer (got: ${raw ?? '<missing>'})`
1735 }
1736 return n
1737}
1738
1739export function parseArgs(args: string[]): ParsedArgs {
1740 let verbose = false

Callers 1

parseArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected