Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

50% Positive

Analyzed from 55 words in the discussion.

Trending Topics

#argp#wrote#cli#argument#parser#inspired#gnu#however#mine#smaller

Discussion (1 Comments)Read Original on HackerNews

zkwinkleabout 4 hours 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.