/** * Lightweight flag/positional splitter for one-shot scripts. * * Distinct from `parseCliArgs`, which models multi-word commands and typed * options. `parseFlagArgs` is the bare-bones alternative for scripts that * just need `{ flags, positionals }` from `process.argv.slice(2)`. * * Flag forms supported: * --foo -> flags.foo = true * --foo bar -> flags.foo = 'bar' * --foo=bar -> flags.foo = 'bar' * --foo-bar baz -> flags.fooBar = 'baz' (kebab -> camel) * -- -> stop parsing flags; rest are positionals * * Anything not starting with `--` becomes a positional. */ export interface ParsedFlagArgs { flags: Record; positionals: string[]; } export declare function parseFlagArgs(args: string[]): ParsedFlagArgs; //# sourceMappingURL=parse-flags.d.ts.map