validate_argument: Validate arguments against a given set of options
Description
This is a replacement for match.arg(), however, the error
string should be more informative for users. The name of the affected argument
is shown, and possible typos as well as remaining valid options.
Usage
validate_argument(argument, options)
Value
argument if it is a valid option, else an error is thrown.