Skip to content

Commit 5de96d7

Browse files
committed
Changed the accessibility of the CommandLine constructor to allow custom parsers to be implemented outside of the org.apache.commons.cli package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1028757 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1f19ed7 commit 5de96d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/cli/CommandLine.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class CommandLine implements Serializable
5454
/**
5555
* Creates a command line.
5656
*/
57-
CommandLine()
57+
protected CommandLine()
5858
{
5959
// nothing to do
6060
}
@@ -344,7 +344,7 @@ public String toString() {
344344
*
345345
* @param arg the unrecognised option/argument.
346346
*/
347-
void addArg(String arg)
347+
protected void addArg(String arg)
348348
{
349349
args.add(arg);
350350
}
@@ -354,7 +354,7 @@ void addArg(String arg)
354354
*
355355
* @param opt the processed option
356356
*/
357-
void addOption(Option opt)
357+
protected void addOption(Option opt)
358358
{
359359
options.add(opt);
360360
}

0 commit comments

Comments
 (0)