Skip to content

Commit 7220ac2

Browse files
committed
Removing the two new methods from the CommandLineParser interface as per CLI-134
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/branches/cli-1.0.x@551811 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1545ae4 commit 7220ac2

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/java/org/apache/commons/cli/CommandLineParser.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,13 @@ CommandLine parse(Options options, String[] arguments,
6868
* @throws ParseException if there are any problems encountered
6969
* while parsing the command line tokens.
7070
*/
71+
/* To maintain binary compatibility, this is commented out.
72+
It is still in the abstract Parser class, so most users will
73+
still reap the benefit.
7174
CommandLine parse(Options options, String[] arguments,
7275
boolean stopAtNonOption)
7376
throws ParseException;
77+
*/
7478

7579
/**
7680
* Parse the arguments according to the specified options and
@@ -85,7 +89,11 @@ CommandLine parse(Options options, String[] arguments,
8589
* @throws ParseException if there are any problems encountered
8690
* while parsing the command line tokens.
8791
*/
92+
/* To maintain binary compatibility, this is commented out.
93+
It is still in the abstract Parser class, so most users will
94+
still reap the benefit.
8895
CommandLine parse(Options options, String[] arguments,
8996
Properties properties, boolean stopAtNonOption)
9097
throws ParseException;
91-
}
98+
*/
99+
}

src/test/org/apache/commons/cli/GnuParseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public class GnuParseTest extends TestCase
2424
{
2525
private Options _options = null;
26-
private CommandLineParser _parser = null;
26+
private Parser _parser = null;
2727

2828
public static Test suite() {
2929
return new TestSuite( GnuParseTest.class );

src/test/org/apache/commons/cli/ParseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ParseTest extends TestCase
2424
{
2525

2626
private Options _options = null;
27-
private CommandLineParser _parser = null;
27+
private Parser _parser = null;
2828

2929
public static Test suite() {
3030
return new TestSuite(ParseTest.class);

0 commit comments

Comments
 (0)