airlift / airline

Java annotation-based framework for parsing Git like command line structures
Apache License 2.0
847 stars 138 forks source link

Option.allowedValues() does not appear to be respected #26

Closed rvesse closed 5 years ago

rvesse commented 10 years ago

The Option annotation has a allowedValues() that can be set but this does not appear to actually get honoured by the parser

The only place this is used is when OptionMetadata is populated by MetadataLoader and then the only place that OptionMetadata.getAllowedValues() is used is in the Parser where it only gets used to display an error message

rvesse commented 10 years ago

I've open a pull request with a proposed fix for this, see Pull Request #27

rvesse commented 5 years ago

Closing as long since resolved in my fork