next up previous contents
Next: Unidentified Options Up: UFOs - Unidentified Flying Previous: UFOs - Unidentified Flying   Contents

Unidentified Arguments

In order to detect unidentified flying arguments one can uses the following functions:

vector<string>  unidentified_arguments(unsigned Number, const char* Known, ...) const;
vector<string>  unidentified_arguments(const vector<string>& Knowns) const;
In the first case, Number specifies the number of known arguments and the following list of const char*-pointers specify the list of known arguments. In the second case, the known arguments are collected in a string vector. This is particularly useful, in case the known arguments are dynamic (nominus arguments as filenames, etc.).

Any argument on the command line, that is not contained in the specified list of known arguments is listed in the string vector that is returned by these functions.



Frank-Rene Schaefer 2002-09-14