Matches a raw value against enum constant names, case-insensitively.
the enum's constants.
the enum's name, shown in help and error messages.
Parses raw into a value of type T.