UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) • 556 B
import { D as parseStrictPositiveInteger } from "./number-coercion-D6u-4YD8.mjs"; import { InvalidArgumentError } from "commander"; //#region src/cli/program/helpers.ts /** Commander option collector for repeatable string flags. */ function collectOption(e, t = []) { return [...t, e]; } function parseStrictPositiveIntOption(e, t) { const n = parseStrictPositiveInteger(e); if (n === void 0) throw new InvalidArgumentError(`${t} must be a positive integer.`); return n; } //#endregion export { parseStrictPositiveIntOption as n, collectOption as t };