-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better support for enum types #84
Conversation
@ajalt there seems to be a problem with the build:
|
@@ -1,7 +1,7 @@ | |||
language: java | |||
|
|||
jdk: | |||
- oraclejdk8 | |||
- openjdk8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a problem, I'll revert this, but it fixed the travis build (see https://travis-ci.community/t/install-of-oracle-jdk-8-failing/3038/3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great idea, thanks! There are a few tweaks to make, but I can do those after merging.
@@ -1,7 +1,7 @@ | |||
language: java | |||
|
|||
jdk: | |||
- oraclejdk8 | |||
- openjdk8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
I'm looking forward to this! Any ETA for a regular release which includes the |
@sschuberth I had been waiting for feedback on #80, but I can make a smaller release without that PR this week. |
That'd be great @ajalt, thanks! |
@sschuberth version 2.2.0 has been released |
I added
RawArgument.enum()
andRawOption.enum()
to support enum types.I added a test class. I updated the docs, as well as the changelog
Advantages over
choice("A" to A, "B" to B)
:C
to the enum?)