17 lines
505 B
Markdown
17 lines
505 B
Markdown
---
|
|
markup: occlusion
|
|
title: lib/cli
|
|
description: 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`*
|