Wrote a CLI argument parser inspired by GNU's argp. However mine's smaller (~1.1k lines of C vs. argp's ~3.5k), doesn't allocate, and has minimal dependencies. It's meant to be friendly for embedded environments.
If you haven't used argp, it's a declarative-ish library for parsing command line args in C.
I wrote this a while back for another firmware project and always wanted to open source it as its own thing. Finally got around to cleaning it up.
Wrote a CLI argument parser inspired by GNU's argp. However mine's smaller (~1.1k lines of C vs. argp's ~3.5k), doesn't allocate, and has minimal dependencies. It's meant to be friendly for embedded environments.
If you haven't used argp, it's a declarative-ish library for parsing command line args in C.
I wrote this a while back for another firmware project and always wanted to open source it as its own thing. Finally got around to cleaning it up.