A good C alternative for Boost.Program_options?

c, command-line-arguments, parsing

Solution

If you are okay with the GPL license, you want GNU getopt.

Problem

Any good alternative written in C to replace Boost.Program_options? Given it's able to parse: - Short options like -h - Long options like --help --input-file - Parse repeated keys/options - Accepts key-value pairs: --mysql=/usr/lib - Parsing environmental variables and XML/INI files is optional.

Original source