Description
A code generator for command-line option parsing in C programs. Developers describe the expected options once, and gengetopt generates C code and help text for handling them consistently.
Use it when maintaining C tools with many command-line flags. Generated parsers should still be tested so dangerous options, defaults, and error messages behave as expected.