krysalis-version/src/java/org/krysalis/version/util/cli Options.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/util/cli
In directory sc8-pr-cvs1:/tmp/cvs-serv19694/src/java/org/krysalis/version/util/cli

Modified Files:
	Options.java 
Log Message:
Making constraint processing more descriptive

Index: Options.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/util/cli/Options.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Options.java	13 Feb 2003 15:46:25 -0000	1.1
--- Options.java	6 Mar 2003 02:58:43 -0000	1.2
***************
*** 131,133 ****
--- 131,148 ----
          return list.toString();
      }
+ 
+     public void display() {
+ 
+         for (Iterator i = m_options.iterator(); i.hasNext();) {
+             Option option = (Option) i.next();
+ 
+             System.out.print(option.getOpt());
+             if (null != option.getLongOpt()) {
+                 System.out.print("(");
+                 System.out.print(option.getLongOpt());
+                 System.out.print(")");
+             }
+             System.out.println();
+         }
+     }
  }




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.