Skip to content

Commit beb276c

Browse files
author
John Keyes
committed
set the default argument name
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@129851 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6bcbf15 commit beb276c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class Option implements Cloneable {
9595
private boolean hasArg;
9696

9797
/** argName specifies the name of the argument for this option */
98-
private String argName;
98+
private String argName = "arg";
9999

100100
/** description of the option */
101101
private String description;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//cli/src/java/org/apache/commons/cli/OptionBuilder.java,v 1.13 2002/11/18 08:41:26 jkeyes Exp $
3-
* $Revision: 1.13 $
4-
* $Date: 2002/11/18 08:41:26 $
2+
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//cli/src/java/org/apache/commons/cli/OptionBuilder.java,v 1.14 2002/11/19 22:54:48 jkeyes Exp $
3+
* $Revision: 1.14 $
4+
* $Date: 2002/11/19 22:54:48 $
55
*
66
* ====================================================================
77
*
@@ -101,7 +101,7 @@ private OptionBuilder() {
101101
*/
102102
private static void reset() {
103103
description = null;
104-
argName = null;
104+
argName = "arg";
105105
longopt = null;
106106
type = null;
107107
required = false;

0 commit comments

Comments
 (0)