next up previous contents index Api Refernce
Next: 6.1 Retrieve a single Up: C++ Command Line Library Previous: 5.3 Compilation and installation


6 Usage

In general there are two ways of using this C++ CmdLine library:

First you may use the function CmdLine::GetSingleValue to retrieve one value for an option.

Second you may define your own function which will be called for each argument given for a certain option. Currently this is the only way to deal with multiple arguments for an option.

Error handling is done using exceptions: a CmdLineException is thrown in case of a command line usage error.



Subsections
next up previous contents index Api Refernce
Next: 6.1 Retrieve a single Up: C++ Command Line Library Previous: 5.3 Compilation and installation
Christian Neise
2003-01-12