File tree Expand file tree Collapse file tree
src/test/org/apache/commons/cli2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import java .io .IOException ;
1919import java .io .PrintWriter ;
2020import java .io .StringWriter ;
21+ import java .util .ArrayList ;
2122import java .util .Iterator ;
2223import java .util .List ;
2324
2728import org .apache .commons .cli2 .builder .DefaultOptionBuilder ;
2829import org .apache .commons .cli2 .builder .GroupBuilder ;
2930import org .apache .commons .cli2 .commandline .Parser ;
31+ import org .apache .commons .cli2 .commandline .WriteableCommandLineImpl ;
3032import org .apache .commons .cli2 .option .DefaultOption ;
3133import org .apache .commons .cli2 .option .PropertyOption ;
3234import org .apache .commons .cli2 .util .HelpFormatter ;
@@ -185,7 +187,7 @@ public void testManualIntroduction() {
185187 ///////////////////////////////////////////////////
186188
187189 try {
188- Group options = null ;
190+ Group options = outputChildren ;
189191 HelpFormatter hf = new HelpFormatter ();
190192
191193 Parser p = new Parser ();
@@ -203,7 +205,7 @@ public void testManualIntroduction() {
203205
204206 //////////////////////////////////////////////////
205207
206- CommandLine cl = null ;
208+ CommandLine cl = new WriteableCommandLineImpl ( outputChildren , new ArrayList ()) ;
207209
208210 // if we have --output option
209211 if (cl .hasOption ("--output" )) {
You can’t perform that action at this time.
0 commit comments