File tree Expand file tree Collapse file tree
java/org/apache/commons/cli
test/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ else if (!("yes".equalsIgnoreCase(value)
287287 {
288288 // if the value is not yes, true or 1 then don't add the
289289 // option to the CommandLine
290- break ;
290+ continue ;
291291 }
292292
293293 cmd .addOption (opt );
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ public void testPropertyOptionFlags() throws Exception
212212 cmd = parser .parse (opts , null , properties );
213213 assertTrue ( !cmd .hasOption ("a" ) );
214214 assertTrue ( !cmd .hasOption ("c" ) );
215- assertTrue ( ! cmd .hasOption ("e" ) );
215+ assertTrue ( cmd .hasOption ("e" ) ); // this option accepts as argument
216216
217217
218218 properties = new Properties ();
@@ -233,7 +233,7 @@ public void testPropertyOptionFlags() throws Exception
233233 cmd = parser .parse (opts , null , properties );
234234 assertTrue ( !cmd .hasOption ("a" ) );
235235 assertTrue ( !cmd .hasOption ("c" ) );
236- assertTrue ( ! cmd .hasOption ("e" ) );
236+ assertTrue ( cmd .hasOption ("e" ) );
237237 }
238238
239239 public void testPropertyOptionMultipleValues () throws Exception
You can’t perform that action at this time.
0 commit comments