MCPcopy
hub / github.com/marimo-team/marimo / parseMaxPerProvider

Function parseMaxPerProvider

packages/llm-info/src/cli.ts:49–56  ·  view source on GitHub ↗
(argv: readonly string[])

Source from the content-addressed store, hash-verified

47}
48
49function parseMaxPerProvider(argv: readonly string[]): number | undefined {
50 const raw = getFlag(argv, ["--max-per-provider", "--max", "-n"]);
51 if (raw === undefined) {
52 return undefined;
53 }
54 const n = Number(raw);
55 return Number.isFinite(n) && n > 0 ? n : undefined;
56}
57
58function parseProviders(argv: readonly string[]): string[] | undefined {
59 const raw = getFlag(argv, ["--provider", "--providers", "-p"]);

Callers 1

parseCliArgsFunction · 0.85

Calls 2

getFlagFunction · 0.85
NumberClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…