6 Commits

Author SHA1 Message Date
Stone Tickle
c2206c7382 refactor cli parsing and docs
We no longer use getopt, but a bespoke parser loosely inspired by
https://github.com/skeeto/scratch/blob/master/parsers/imgo.c.

The purpose of this is to reduce duplication.  Currently for every cli
flag we need to list it a total of 4 times.  Once in the optstring, once
in the switch statement, once in the cli help (-h), and ideally once in the man
page (which is easy to forget).  The new api should function exactly
like posix getopt, but allows us to only specify flags in one place and
generate all docs necessary.  Additionally, the docs are available and
searchable using muon help.
2026-01-06 10:23:54 -05:00
Stone Tickle
feaf79ceab wip 5: seg list 2025-10-16 10:29:17 -04:00
Stone Tickle
45d8d0f0fd add more custom iterators 2025-01-08 10:10:40 -05:00
Stone Tickle
b5993cf0ea fix obj_array_flat_for 2024-05-28 06:54:24 -04:00
Stone Tickle
10475a468e fix .clang-format copyright 2024-04-15 16:23:59 -04:00
Stone Tickle
e9f8c0477e more stuff working + clang-format 2024-04-15 16:23:52 -04:00