cbeust/jcommander — pull request #82 by amuraru (2011-10-20 02:06:35+00:00)
Title: Support for enum types / choice arguments

Hi Cedric,

Trying to find a way to defined enum based parameters I came up with a tiny patch to support the following defns:
I find it really handy in cases where you want to limit the values for a given parameter. (i.e choice arguments)

```java
enum ChoiceType { ONE, TWO, THREE };
@Parameter(names = "-choice", description = "Choice parameter")
public ProtocolType choice = ChoiceType.ONE;

....

switch (choice) {
case ONE:
doOneStuff();
break;
case TWO:
doOtherStuff();
break;
...
}
```

Let me know,

Adrian