bool OEParseCommandLineLW(OEInterface& itf, int argc, char** argv, const unsigned char* requirements = NULL, unsigned int error_level = OEErrorLevel::Error);
The overall purpose of this function is to set parameters in the itf object by parsing the command line, argc and argv. This is the same purpose as OEParseCommandLine, however, this function has different rules for parsing the command line, most notably nothing is entered as a key-value pair, and is in general designed for small lightweight interfaces, hence the LW in the function name.
When using this function all parameters of itf must fall into one of two categories.
and the command line should be of the following form.
program [boolean parameter keys] [keyless parameter values]
boolean parameter keys
program -a -b -c [keyless parameter values]
and
program -abc [keyless parameter values]
and
program -c -ba [keyless parameter values]
Are all equivilant, provided -a, -b and -c are boolean parameters with default values of false.
keyless parameter values
This function returns true if it was successful and false otherwise. Errors
are reported at error_level to OEThrow
.