@@ -259,7 +259,7 @@ <h1>Using Ant as an Example</h1>
259259 -logger <classname> the class which is to perform logging
260260 -listener <classname> add an instance of class as a project listener
261261 -buildfile <file> use given buildfile
262- -D<property> =<value> use value for given property
262+ -D<property> =<value> use value for given property
263263 -find <file> search for buildfile towards the root of the
264264 filesystem and use it</ code > </ pre >
265265 < section >
@@ -610,7 +610,7 @@ <h1>Deprecating Options</h1>
610610 < section >
611611 < h2 > Changing Usage Announcement</ h2 >
612612 < p >
613- The usage announcement may be changed by providing a < code > Consumer<Option> </ code > to the
613+ The usage announcement may be changed by providing a < code > Consumer<Option> </ code > to the
614614 < code > CommandLine.Builder.deprecatedHandler</ code > method. This is commonly used to log usage
615615 of deprecated options rather than printing them on the standard output.
616616 </ p >
@@ -644,7 +644,7 @@ <h2>Changing Usage Announcement</h2>
644644
645645 < pre > < code >
646646 void doSomething(Options options) {
647- Consumer<Option> deprecatedUsageAnnouncement = o -> {
647+ Consumer<Option> deprecatedUsageAnnouncement = o -> {
648648 final StringBuilder buf = new StringBuilder()
649649 .append("'")
650650 .append(o.getOpt())
@@ -694,23 +694,23 @@ <h2>Changing help format</h2>
694694 </ p >
695695 < pre > < code >
696696 usage: Command line syntax:
697- -count <arg> the number of things
698- -n <arg> [Deprecated] the number of things</ code > </ pre >
697+ -count <arg> the number of things
698+ -n <arg> [Deprecated] the number of things</ code > </ pre >
699699 < p >
700700 The display of deprecated options may be changed through the use of the
701701 < code > HelpFormatter.Builder.setShowDeprecated()</ code > method.
702702 </ p >
703703 < ul >
704704 < li > Calling < code > HelpFormatter.Builder.setShowDeprecated(false)</ code > will disable the "[Deprecated]" tag.</ li >
705- < li > Calling < code > HelpFormatter.Builder.setShowDeprecated</ code > with a < code > Function<Option, String> </ code >
705+ < li > Calling < code > HelpFormatter.Builder.setShowDeprecated</ code > with a < code > Function<Option, String> </ code >
706706 will use the output of the function as the description for the option.</ li >
707707 </ ul >
708708 < p >
709709 As an example of the second case above, changing the implementation of < code > doSomething</ code > to
710710 </ p >
711711 < pre > < code >
712712 void doSomething(Options options) {
713- Function<Option, String> disp = option -> String.format("%s. %s", HelpFormatter.getDescription(option),
713+ Function<Option, String> disp = option -> String.format("%s. %s", HelpFormatter.getDescription(option),
714714 option.getDeprecated().toString());
715715 HelpFormatter formatter = HelpFormatter.builder().setShowDeprecated(disp).get();
716716 formatter.printHelp("Command line syntax:", options);
@@ -720,8 +720,8 @@ <h2>Changing help format</h2>
720720 </ p >
721721 < pre > < code >
722722 usage: Command line syntax:
723- -count <arg> the number of things
724- -n <arg> the number of things. Deprecated for removal since now:
723+ -count <arg> the number of things
724+ -n <arg> the number of things. Deprecated for removal since now:
725725 Use '-count' instead</ code > </ pre >
726726 </ section >
727727 </ section >
0 commit comments