Skip to content

Commit f564e78

Browse files
committed
Reverted the replacement of withShortName with withLongName (CLI-171)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@704549 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6183eaa commit f564e78

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

xdocs/examples/ant.xml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,53 +48,53 @@ final GroupBuilder gbuilder = new GroupBuilder();</source>
4848
</p>
4949
<source>Option help =
5050
obuilder
51-
.withLongName("help")
51+
.withShortName("help")
5252
.withShortName("h")
5353
.withDescription("print this message")
5454
.create();
5555
Option projecthelp =
5656
obuilder
57-
.withLongName("projecthelp")
57+
.withShortName("projecthelp")
5858
.withShortName("p")
5959
.withDescription("print project help information")
6060
.create();
6161
Option version =
6262
obuilder
63-
.withLongName("version")
63+
.withShortName("version")
6464
.withDescription("print the version information and exit")
6565
.create();
6666
Option diagnostics =
6767
obuilder
68-
.withLongName("diagnostics")
68+
.withShortName("diagnostics")
6969
.withDescription("print information that might be helpful to diagnose or report problems.")
7070
.create();
7171
Option quiet =
7272
obuilder
73-
.withLongName("quiet")
73+
.withShortName("quiet")
7474
.withShortName("q")
7575
.withDescription("be extra quiet")
7676
.create();
7777
Option verbose =
7878
obuilder
79-
.withLongName("verbose")
79+
.withShortName("verbose")
8080
.withShortName("v")
8181
.withDescription("be extra verbose")
8282
.create();
8383
Option debug =
8484
obuilder
85-
.withLongName("debug")
85+
.withShortName("debug")
8686
.withShortName("d")
8787
.withDescription("print debugging information")
8888
.create();
8989
Option emacs =
9090
obuilder
91-
.withLongName("emacs")
91+
.withShortName("emacs")
9292
.withShortName("e")
9393
.withDescription("produce logging information without adornments")
9494
.create();
9595
Option lib =
9696
obuilder
97-
.withLongName("lib")
97+
.withShortName("lib")
9898
.withDescription("specifies a path to search for jars and classes")
9999
.withArgument(
100100
abuilder
@@ -105,7 +105,7 @@ Option lib =
105105
.create();
106106
Option logfile =
107107
obuilder
108-
.withLongName("logfile")
108+
.withShortName("logfile")
109109
.withShortName("l")
110110
.withDescription("use given file for log")
111111
.withArgument(
@@ -117,7 +117,7 @@ Option logfile =
117117
.create();
118118
Option logger =
119119
obuilder
120-
.withLongName("logger")
120+
.withShortName("logger")
121121
.withDescription("the class which is to perform logging")
122122
.withArgument(
123123
abuilder
@@ -128,7 +128,7 @@ Option logger =
128128
.create();
129129
Option listener =
130130
obuilder
131-
.withLongName("listener")
131+
.withShortName("listener")
132132
.withDescription("add an instance of class as a project listener")
133133
.withArgument(
134134
abuilder
@@ -139,13 +139,13 @@ Option listener =
139139
.create();
140140
Option noinput =
141141
obuilder
142-
.withLongName("noinput")
142+
.withShortName("noinput")
143143
.withDescription("do not allow interactive input")
144144
.create();
145145
Option buildfile =
146146
obuilder
147-
.withLongName("buildfile")
148-
.withLongName("file")
147+
.withShortName("buildfile")
148+
.withShortName("file")
149149
.withShortName("f")
150150
.withDescription("use given buildfile")
151151
.withArgument(
@@ -158,7 +158,7 @@ Option buildfile =
158158
Option property = new PropertyOption();
159159
Option propertyfile =
160160
obuilder
161-
.withLongName("propertyfile")
161+
.withShortName("propertyfile")
162162
.withDescription("load all properties from file with -D properties taking precedence")
163163
.withArgument(
164164
abuilder
@@ -169,7 +169,7 @@ Option propertyfile =
169169
.create();
170170
Option inputhandler =
171171
obuilder
172-
.withLongName("inputhandler")
172+
.withShortName("inputhandler")
173173
.withDescription("the class which will handle input requests")
174174
.withArgument(
175175
abuilder
@@ -180,7 +180,7 @@ Option inputhandler =
180180
.create();
181181
Option find =
182182
obuilder
183-
.withLongName("find")
183+
.withShortName("find")
184184
.withShortName("s")
185185
.withDescription("search for buildfile towards the root of the filesystem and use it")
186186
.withArgument(

0 commit comments

Comments
 (0)