| ▲ | Wrote a tiny version of argp for CLI parsing in embedded environments(github.com) | |
| 3 points by zkwinkle 16 hours ago | 1 comments | ||
| ▲ | zkwinkle 16 hours ago | parent [-] | |
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. | ||