Wrote a tiny version of argp for CLI parsing in embedded environments
1 points
1 hour ago
| 1 comment
| github.com
| HN
zkwinkle
1 hour ago
[-]
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.

reply