UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

10 lines 722 B
//#region src/infra/cli-root-options.d.ts /** CLI token that stops root option scanning and leaves following args positional. */ export declare const FLAG_TERMINATOR = "--"; /** Returns whether a token can be consumed as a root option value. */ export declare function isValueToken(arg: string | undefined): boolean; /** Returns how many argv tokens a supported root option consumes at the given index. */ export declare function consumeRootOptionToken(args: ReadonlyArray<string>, index: number): number; /** Read positional command tokens while accepting root options at any pre-terminator position. */ export declare function getRootOptionAwareCommandPath(argv: readonly string[], depth: number): string[]; //#endregion