Files
marqdo/lib/cli.mq.md
T
cflmyandCursor fecaacd5be docs(lib): narrate remaining stdlib modules (M2)
Add module intros and per-function purpose lines across EN/ZH libs, with
callable examples on the smaller modules; keep + params and host bodies intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 11:47:35 +08:00

487 B

title, description
title description
lib/cli Parse argv flags (Mid M5). --key value / --key=value / --flag; positionals under _.

Parse process argv into a map. Flags and positionals (under _).

parse

+ `args`=None

Parse --key value / --key=value / --flag. A bare --flag must not be followed by a non-option token if you need it as boolean (put flags last, or use --flag=true). Positionals land under _. Omit args to use process argv.

Caller: [cli.parse]

> host_cli_parse args=args