commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roxspr...@apache.org
Subject cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli2/option GroupImpl.java
Date Fri, 08 Oct 2004 10:23:11 GMT
roxspring    2004/10/08 03:23:11

  Modified:    cli/src/java/org/apache/commons/cli2/option GroupImpl.java
  Log:
  GroupImpl.validate() always validates instances of Group since they may contain other options
that need validating
  
  Revision  Changes    Path
  1.6       +3 -0      jakarta-commons/cli/src/java/org/apache/commons/cli2/option/GroupImpl.java
  
  Index: GroupImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli2/option/GroupImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- GroupImpl.java	2 Oct 2004 13:16:21 -0000	1.5
  +++ GroupImpl.java	8 Oct 2004 10:23:11 -0000	1.6
  @@ -227,6 +227,9 @@
               if(option.isRequired()){
                   option.validate(commandLine);
               }
  +            if(option instanceof Group){
  +            	option.validate(commandLine);
  +            }
               // if the child option is present then validate it
               if (commandLine.hasOption(option)) {
                   if (++present > maximum) {
  
  
  

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