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-sandbox/cli/src/java/org/apache/commons/cli2 CommandLine.java
Date Wed, 22 Oct 2003 23:27:58 GMT
roxspring    2003/10/22 16:27:58

  Modified:    cli/src/java/org/apache/commons/cli2 CommandLine.java
  Log:
  CommandLine instances can now be queried to find the Options present
  
  Revision  Changes    Path
  1.2       +11 -3     jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/CommandLine.java
  
  Index: CommandLine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/CommandLine.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CommandLine.java	18 Oct 2003 22:00:06 -0000	1.1
  +++ CommandLine.java	22 Oct 2003 23:27:58 -0000	1.2
  @@ -225,4 +225,12 @@
   
   		return buffer.toString();
   	}
  +
  +    public Set getOptions(){
  +        return Collections.unmodifiableSet(options);
  +    }
  +
  +    public Set getOptionTriggers(){
  +        return Collections.unmodifiableSet(nameToOption.keySet());
  +    }
   }
  
  
  

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