Parses an input that must be one of the given options.
The comparison is case-sensitive. Surrounding whitespace is ignored.
The name of the input.
The allowed options.
The option to return if the input is empty or not set.
The parsed option.
if the input is set to a value that is not one of the options.
Parses an input that must be one of the given options.
The comparison is case-sensitive. Surrounding whitespace is ignored.