cbeust/jcommander — Issue #107: Lowercase enum values are not supported
Author: jontejj
Created: 2012-02-27 17:36:00+00:00
State: open

It says:

com.beust.jcommander.ParameterException: Invalid value for -enum parameter. Allowed values:[Start, Stop]

When I use:
commander.parse("-enum", "Start");

It is like this because before calling valueOf() on the enum JCommander does value.toUpperCase(). Maybe JCommander could do a lookup with the given value and if that isn't found it can try with upper case?

The enum class looks like this:
public enum TestEnum
{
Start,
Stop
}