Thicken table with sort/unique/chunk/zip/flatten and add lib/cli flag parsing, with golds and public demos. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
384 B
Markdown
12 lines
384 B
Markdown
---
|
|
title: lib/cli
|
|
description: Parse argv flags (Mid M5). --key value / --key=value / --flag; 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 `_`.
|
|
|
|
**> host_cli_parse args=`args`**
|