added support for enum types for command line arguments