You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2010/06/16 20:16:23 UTC
[jira] Created: (CLI-203) The state of the option groups is not
updated by the default options
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.
[jira] Commented: (CLI-203) The state of the option groups is not
updated by the default options
Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (CLI-203) The state of the option groups is not
updated by the default options
Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg resolved CLI-203.
--------------------------------
Resolution: Fixed
> 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.