UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) 591 B
import { d as isRootHelpInvocation, n as getCommandPathWithRootOptions, o as getPrimaryCommand, u as isHelpOrVersionInvocation } from "./argv-CnfL__6a.js"; //#region src/cli/argv-invocation.ts /** Resolves command path and help/version mode from a raw process argv array. */ function resolveCliArgvInvocation(argv) { return { argv, commandPath: getCommandPathWithRootOptions(argv, 2), primary: getPrimaryCommand(argv), hasHelpOrVersion: isHelpOrVersionInvocation(argv), isRootHelpInvocation: isRootHelpInvocation(argv) }; } //#endregion export { resolveCliArgvInvocation as t };