[
https://issues.apache.org/jira/browse/CLI-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830666#comment-13830666
]
Thomas Neidhart commented on CLI-239:
-------------------------------------
Your patch goes in the right direction, but will have to wait for 2.0 as it
changes the behavior of the getRequiredOptions method.
> Patch: Required Options Not Using Generics
> ------------------------------------------
>
> Key: CLI-239
> URL: https://issues.apache.org/jira/browse/CLI-239
> Project: Commons CLI
> Issue Type: Improvement
> Reporter: BELUGA BEHR
> Priority: Trivial
> Fix For: 2.0
>
> Attachments: DefaultParser.java.patch, OptionGroup.java.patch,
> Options.java.patch
>
>
> The way in which required options were being handled involved a list blended
> with Options and Strings. I have simplified the process and now the list
> only contains Options.
> With this patch, OptionGroup now enforces that all Option objects added to it
> match its own "required" level.
> The unit tests are broken with these changes though.
--
This message was sent by Atlassian JIRA
(v6.1#6144)