commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CLI-183) Clear the selection from the groups before parsing
Date Sat, 30 May 2009 02:33:07 GMT

     [ https://issues.apache.org/jira/browse/CLI-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Bourg resolved CLI-183.
--------------------------------

    Resolution: Fixed

> Clear the selection from the groups before parsing
> --------------------------------------------------
>
>                 Key: CLI-183
>                 URL: https://issues.apache.org/jira/browse/CLI-183
>             Project: Commons CLI
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.1, 1.2
>            Reporter: Emmanuel Bourg
>            Assignee: Emmanuel Bourg
>             Fix For: 1.3
>
>
> OptionGroup stores the name of the option selected after the parsing. If the same Options
is used again to parse another command line, an AlreadySelectedException is likely to occur
since the selection state is never cleared from the option group.
> This case was already covered by testValidLongOnlyOptions() in OptionGroupTest, but it
never failed due to CLI-182.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message