This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 7835c1cd Fix Javadoc for Java 11
7835c1cd is described below
commit 7835c1cd5cfd2d201277d01f354aaf3b75763619
Author: Gary D. Gregory <[email protected]>
AuthorDate: Tue Jul 29 16:31:00 2025 -0400
Fix Javadoc for Java 11
---
src/main/javadoc/overview.html | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/main/javadoc/overview.html b/src/main/javadoc/overview.html
index 82af0b86..7d84a88b 100644
--- a/src/main/javadoc/overview.html
+++ b/src/main/javadoc/overview.html
@@ -259,7 +259,7 @@ else {
-logger <classname> the class which is to perform logging
-listener <classname> add an instance of class as a project listener
-buildfile <file> use given buildfile
- -D<property>=<value> use value for given property
+ -D<property>=<value> use value for given property
-find <file> search for buildfile towards the root of the
filesystem and use it</code></pre>
<section>
@@ -610,7 +610,7 @@ public static void main(String[] args) {
<section>
<h2>Changing Usage Announcement</h2>
<p>
- The usage announcement may be changed by providing a
<code>Consumer<Option></code> to the
+ The usage announcement may be changed by providing a
<code>Consumer<Option></code> to the
<code>CommandLine.Builder.deprecatedHandler</code> method.
This is commonly used to log usage
of deprecated options rather than printing them on the
standard output.
</p>
@@ -644,7 +644,7 @@ public static void main(String[] args) {
<pre><code>
void doSomething(Options options) {
- Consumer<Option> deprecatedUsageAnnouncement = o -> {
+ Consumer<Option> deprecatedUsageAnnouncement = o -> {
final StringBuilder buf = new StringBuilder()
.append("'")
.append(o.getOpt())
@@ -694,15 +694,15 @@ public static void main(String[] args) {
</p>
<pre><code>
usage: Command line syntax:
- -count <arg> the number of things
- -n <arg> [Deprecated] the number of things</code></pre>
+ -count <arg> the number of things
+ -n <arg> [Deprecated] the number of things</code></pre>
<p>
The display of deprecated options may be changed through the use
of the
<code>HelpFormatter.Builder.setShowDeprecated()</code> method.
</p>
<ul>
<li>Calling
<code>HelpFormatter.Builder.setShowDeprecated(false)</code> will disable the
"[Deprecated]" tag.</li>
- <li>Calling <code>HelpFormatter.Builder.setShowDeprecated</code>
with a <code>Function<Option, String></code>
+ <li>Calling <code>HelpFormatter.Builder.setShowDeprecated</code>
with a <code>Function<Option, String></code>
will use the output of the function as the description
for the option.</li>
</ul>
<p>
@@ -710,7 +710,7 @@ public static void main(String[] args) {
</p>
<pre><code>
void doSomething(Options options) {
- Function<Option, String> disp = option -> String.format("%s. %s",
HelpFormatter.getDescription(option),
+ Function<Option, String> disp = option -> String.format("%s.
%s", HelpFormatter.getDescription(option),
option.getDeprecated().toString());
HelpFormatter formatter =
HelpFormatter.builder().setShowDeprecated(disp).get();
formatter.printHelp("Command line syntax:", options);
@@ -720,8 +720,8 @@ public static void main(String[] args) {
</p>
<pre><code>
usage: Command line syntax:
- -count <arg> the number of things
- -n <arg> the number of things. Deprecated for removal since now:
+ -count <arg> the number of things
+ -n <arg> the number of things. Deprecated for removal since now:
Use '-count' instead</code></pre>
</section>
</section>