DocoptDocopt has a C implementation that I thought was quite nice nice: https://github.com/docopt/docopt.c
From a man-page standardized format describing command line options, docopt infers and creates an argument parser. ThisThis got started in python;Python; the pythonPython version literally just parses the docstring and returns a dict. ToTo do this in C takes a little more work, but it's clean to use and has no external dependencies.