Popt: parse command line options
1.8
The popt library exists essentially for parsing commandline options. It is found superior in many ways when compared to parsing the argv array by hand or using the getopt functions getopt() and getopt_long() [see getopt(3)]. Some specific advantages of popt are: it does not utilize global variables, thus enabling multiple passes in parsing argv ; it can parse an arbitrary array of argv-style elements, allowing parsing of command -line-strings from any source; it provides a standard method of option aliasing (to be discussed at length below.); it can exec external option filters; and, finally, it can automatically generate help and usage messages for the application.
http://freshmeat.net/projects/popt
If you download the Setup version of the package, the dependencies, as listed below under Requirements, are already included, apart from msvcrt.dll. If you download the package as Zip files, then you must take care of the dependencies yourself.
When using the dynamic library, popt.dll, one cannot use POPT_AUTOHELP in a static options structure, i.e. an options structure outside a function.
General Installation Instructions