GNU gengetopt takes a simple description of arguments and generates a C function that uses the GNU getopt_long(3) function to parse and validate the options. It is perfect if you are too lazy to write all that is required to call getopt_long(3), or need to use many options. The generated code also works with autoconf or automake.
License: GNU General Public License (GPL)
Changes:
Compilation warnings for generated files wereremoved. A bug with --long-help and enum optionswas fixed and the output of --help and output of--show-help now correspond. A compilation problemin generated output with mode options was fixed.
More...