getopt auto provides a wrapper for the standard getopt_long() facility, just to make things that much easier.
A wrapper for the standard getopt_long() facility, just to make things that much easier. It takes a data structure that describes the options and it takes care of the parsing of the values and printing of the help page. Of course, with more things being taken care of, it adds additional limits, but for most of my quick n' dirty projects, this is all I need.
Since it is so small, I don't bother making it into a shared library; I just include getopt_auto.h and list getopt_auto.c as a source file when building things that require it. If you want to work up the autoconf setup to get it to build as a shared library, feel free to do so and send it to me.