commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roxspr...@apache.org
Subject svn commit: r190808 - /jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/DocumentationTest.java
Date Wed, 15 Jun 2005 21:11:17 GMT
Author: roxspring
Date: Wed Jun 15 14:11:16 2005
New Revision: 190808

URL: http://svn.apache.org/viewcvs?rev=190808&view=rev
Log:
DocumentationTest now passes again

Modified:
    jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/DocumentationTest.java

Modified: jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/DocumentationTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/DocumentationTest.java?rev=190808&r1=190807&r2=190808&view=diff
==============================================================================
--- jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/DocumentationTest.java
(original)
+++ jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/DocumentationTest.java
Wed Jun 15 14:11:16 2005
@@ -18,6 +18,7 @@
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.io.StringWriter;
+import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 
@@ -27,6 +28,7 @@
 import org.apache.commons.cli2.builder.DefaultOptionBuilder;
 import org.apache.commons.cli2.builder.GroupBuilder;
 import org.apache.commons.cli2.commandline.Parser;
+import org.apache.commons.cli2.commandline.WriteableCommandLineImpl;
 import org.apache.commons.cli2.option.DefaultOption;
 import org.apache.commons.cli2.option.PropertyOption;
 import org.apache.commons.cli2.util.HelpFormatter;
@@ -185,7 +187,7 @@
         ///////////////////////////////////////////////////
         
         try {
-            Group options = null;
+            Group options = outputChildren;
             HelpFormatter hf = new HelpFormatter();
             
             Parser p = new Parser();
@@ -203,7 +205,7 @@
         
         //////////////////////////////////////////////////
         
-        CommandLine cl = null;
+        CommandLine cl = new WriteableCommandLineImpl(outputChildren,new ArrayList());
         
         // if we have --output option
         if(cl.hasOption("--output")) {



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