Code

Introduce parse_enum and use it to parse the show-date option