This library provides portable command line parsing which can be used across several platforms to provide a consistent command line interface. WFOPT uses the model-view-controller pattern: options are specified via an option set, which are interpreted via a parser object and whose behavior can be modified using controller objects. This library is object-oriented and interaction occurs with it at a high level. Programmers can easily write their own parsers if none of the included parsers fit their tastes, but GNU Getopt-, Sun Microsystems- (ala Java), and DOS/Windows style command parsers are supported out of the box. Additionally, the parsing results provide a great deal of information: not only do they provide the captured options and excess arguments, but also provide access to strings which are putatively options but failed to capture.
Features
- Object-oriented
- Implementation of several parsing styles, including GNU Getopt, Sun Microsystems, and DOS/Windows
- Straightforward access to parsed arguments via MVC framework
- Options support mixture of required and optional parameters.
- Options may be multiply captured