@@ -48,53 +48,53 @@ final GroupBuilder gbuilder = new GroupBuilder();</source>
4848 </p >
4949<source >Option help =
5050 obuilder
51- .withShortName ("help")
51+ .withLongName ("help")
5252 .withShortName("h")
5353 .withDescription("print this message")
5454 .create();
5555Option projecthelp =
5656 obuilder
57- .withShortName ("projecthelp")
57+ .withLongName ("projecthelp")
5858 .withShortName("p")
5959 .withDescription("print project help information")
6060 .create();
6161Option version =
6262 obuilder
63- .withShortName ("version")
63+ .withLongName ("version")
6464 .withDescription("print the version information and exit")
6565 .create();
6666Option diagnostics =
6767 obuilder
68- .withShortName ("diagnostics")
68+ .withLongName ("diagnostics")
6969 .withDescription("print information that might be helpful to diagnose or report problems.")
7070 .create();
7171Option quiet =
7272 obuilder
73- .withShortName ("quiet")
73+ .withLongName ("quiet")
7474 .withShortName("q")
7575 .withDescription("be extra quiet")
7676 .create();
7777Option verbose =
7878 obuilder
79- .withShortName ("verbose")
79+ .withLongName ("verbose")
8080 .withShortName("v")
8181 .withDescription("be extra verbose")
8282 .create();
8383Option debug =
8484 obuilder
85- .withShortName ("debug")
85+ .withLongName ("debug")
8686 .withShortName("d")
8787 .withDescription("print debugging information")
8888 .create();
8989Option emacs =
9090 obuilder
91- .withShortName ("emacs")
91+ .withLongName ("emacs")
9292 .withShortName("e")
9393 .withDescription("produce logging information without adornments")
9494 .create();
9595Option lib =
9696 obuilder
97- .withShortName ("lib")
97+ .withLongName ("lib")
9898 .withDescription("specifies a path to search for jars and classes")
9999 .withArgument(
100100 abuilder
@@ -105,7 +105,7 @@ Option lib =
105105 .create();
106106Option logfile =
107107 obuilder
108- .withShortName ("logfile")
108+ .withLongName ("logfile")
109109 .withShortName("l")
110110 .withDescription("use given file for log")
111111 .withArgument(
@@ -117,7 +117,7 @@ Option logfile =
117117 .create();
118118Option logger =
119119 obuilder
120- .withShortName ("logger")
120+ .withLongName ("logger")
121121 .withDescription("the class which is to perform logging")
122122 .withArgument(
123123 abuilder
@@ -128,7 +128,7 @@ Option logger =
128128 .create();
129129Option listener =
130130 obuilder
131- .withShortName ("listener")
131+ .withLongName ("listener")
132132 .withDescription("add an instance of class as a project listener")
133133 .withArgument(
134134 abuilder
@@ -139,13 +139,13 @@ Option listener =
139139 .create();
140140Option noinput =
141141 obuilder
142- .withShortName ("noinput")
142+ .withLongName ("noinput")
143143 .withDescription("do not allow interactive input")
144144 .create();
145145Option buildfile =
146146 obuilder
147- .withShortName ("buildfile")
148- .withShortName ("file")
147+ .withLongName ("buildfile")
148+ .withLongName ("file")
149149 .withShortName("f")
150150 .withDescription("use given buildfile")
151151 .withArgument(
@@ -158,7 +158,7 @@ Option buildfile =
158158Option property = new PropertyOption();
159159Option propertyfile =
160160 obuilder
161- .withShortName ("propertyfile")
161+ .withLongName ("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();
170170Option inputhandler =
171171 obuilder
172- .withShortName ("inputhandler")
172+ .withLongName ("inputhandler")
173173 .withDescription("the class which will handle input requests")
174174 .withArgument(
175175 abuilder
@@ -180,7 +180,7 @@ Option inputhandler =
180180 .create();
181181Option find =
182182 obuilder
183- .withShortName ("find")
183+ .withLongName ("find")
184184 .withShortName("s")
185185 .withDescription("search for buildfile towards the root of the filesystem and use it")
186186 .withArgument(
@@ -260,7 +260,7 @@ for (Iterator i = targetList.iterator(); i.hasNext();) {
260260 <p >
261261 To generate a help page for ant we first need to create a
262262 HelpFormatter and set some basic properties. The shell command is
263- the command that the used would have typed to invoke the application,
263+ the command that the user would have typed to invoke the application,
264264 and the group is the group of options that compose the model.
265265 </p >
266266<source >HelpFormatter hf = new HelpFormatter();
0 commit comments