eriknyquist/duckargs
Code generation tool, creates python / C programs that parse command line arguments. Say bye to starting each project by reading "argparse" / "geptopt.h" docs.
Generates parser boilerplate by introspecting command-line invocations—pass desired options/arguments/flags directly to `duckargs` and it outputs complete, production-ready code with type validation, help text, and default values. Supports dual-target code generation (Python's argparse and C's getopt.h), including constraint validation through comma-separated choice lists that translate to argparse `choices` or C validation arrays.
121 stars and 30 monthly downloads. No commits in the last 6 months. Available on PyPI.
Stars
121
Forks
4
Language
Python
License
MIT
Category
Last pushed
Aug 11, 2025
Monthly downloads
30
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/eriknyquist/duckargs"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
inducer/cgen
C/C++ source generation from an AST
westandskif/convtools
convtools is a specialized Python library for dynamic, declarative data transformations with...
pyecore/pyecore
A Python(nic) Implementation of EMF/Ecore (Eclipse Modeling Framework)
mutating/transfunctions
Say NO to Python fragmentation on sync and async
cogu/cfile
A python C code generator