Restrict `OptionParser` argument to enum values

Something like

unless engine = Engine.parse? e
  STDERR.puts "Supported options: #{Engine.names.map(&.downcase).join ", "}"
  exit 1
end

# ...
2 Likes