Throw an error if the given value at the options object (if any) is not a valid
option for the given option name, if the possible values is one of the given
possible values.
Throws
if there is an option given and the value is not one of the possible values.
Throw an error if the given value at the options object (if any) is not a valid option for the given option name, if the possible values is one of the given possible values.
Throws
if there is an option given and the value is not one of the possible values.