Process the command-line, and return the list of values that matched (and those that didn't). The arguments are:
The order requirements (see ArgOrder)
The option descriptions (see OptDescr)
The actual command line arguments (presumably got from getArgs).
getOpt returns a triple consisting of the option arguments, a list of non-options, and a list of error messages.