资 源 简 介
OptionParse provides a collection of C++ classes that enable extensible command-line argument parsing. It is very similar to (and derived from) the various option-parsing classes in glibmm, which themselves are wrappers around goption.[h|c] in glib. However, this project differs because it is entirely self-contained without all the extras (threads, signals, custom string classes, dlopen support, ...) provided by glib/glibmm. It does one thing: parses argv data structures.
Documentation is sketchy to non-existant, but there is a fairly thorough example program. And, as the code is derived from glibmm, most of the documentation for its option parsing classes applies, with a little creative interpretation.