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] Commented: (CLI-203) The state of the option groups is not updated by the default options
Date Wed, 16 Jun 2010 23:07:23 GMT

    [ https://issues.apache.org/jira/browse/CLI-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879574#action_12879574
] 

Emmanuel Bourg commented on CLI-203:
------------------------------------

In the case exposed we could either throw an exception or ignore the default option. Ignoring
the default option if its group is already set seems more sensible.

> The state of the option groups is not updated by the default options
> --------------------------------------------------------------------
>
>                 Key: CLI-203
>                 URL: https://issues.apache.org/jira/browse/CLI-203
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.1
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.3
>
>
> The state of the option groups is neither checked nor updated when the default options
passed as a Properties instance to the parse method are processed. For example if 'a' and
'b' are two mutually exclusive options, the command line argument could specify 'a' and the
default options could contain 'b', the parser will not complain and the resulting CommandLine
will contain 'a' and 'b'.

-- 
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