MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseCapacityValue

Function parseCapacityValue

src/bridge/bridgeMain.ts:1729–1735  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

parseArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected