commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Shirley (JIRA)" <j...@apache.org>
Subject [jira] Created: (CLI-123) the minimum and maximum constraints on a group do not take other groups into account
Date Fri, 28 Jul 2006 09:50:14 GMT
the minimum and maximum constraints on a group do not take other groups into account
------------------------------------------------------------------------------------

                 Key: CLI-123
                 URL: http://issues.apache.org/jira/browse/CLI-123
             Project: Commons CLI
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Andrew Shirley
            Priority: Minor


If you have a Group A as a child of Group B and you set a minimum or maximum on Group B, the
presence or not of Group A will not affect GroupB. This is because Groups are never added
to a CommandLine so .hasOption(A) returns false and so it isn't counted. WriteableCommandLine#addOption(Option)
should be used to indicate that a Group is present if any of a Groups children is present.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message