|
|
| AppOptionParser () |
| | Constructs an AppOptionParser object.
|
| |
|
virtual | ~AppOptionParser () |
| | Destroys an AppOptionParser object.
|
| |
| void | allowUnknownOption (bool allow=true) |
| | Determines whether or not the parser will allow unknown options to pass through the parser without generating an error. More...
|
| |
| void | setDescription (const std::string &description) |
| | Sets the portion of the usage information where the application description is displayed. More...
|
| |
| void | setDisplayWidth (int displayWidth=75) |
| | Sets the display width of the usage information. More...
|
| |
| void | setEpilogText (const std::string &epilogText) |
| | Sets the epilog portion of the usage information; that is, the part that comes after the list of supported options. More...
|
| |
| void | setExecutable (const std::string &executable) |
| | Sets the portion of the usage information where the executable name is displayed. More...
|
| |
| void | setUnparsedArgText (const std::string &unparsedArgText) |
| | Sets the portion of the usage information that represents the collection of unparsed arguments. More...
|
| |
| void | setVersion (const std::string &version) |
| | Sets the portion of the usage information that represents the application version. More...
|
| |
| virtual void | addOption (const AppOption &opt) |
| | Adds an allowed option to the parser. More...
|
| |
| virtual void | addOption (const std::string &shortName, const std::string &longName, int valueType, void *valuePtr, const std::string &helpArgName, const std::string &helpText, bool showDefault) |
| | Adds an allowed option to the parser. More...
|
| |
| virtual int | parse (int argc, char **argv) |
| | Parses the command-line options. More...
|
| |
Parses command-line options supported by the application.
The option parser defines the following options by default: –help Prints help text and exits –version Prints version information and exits
Definition at line 248 of file App.h.