This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_10x by this push:
new 4128f15799f Single space, not double space between usage: and tool
name (#4167)
4128f15799f is described below
commit 4128f15799f262cb7f96dbb5a9e9defc636a41ca
Author: Eric Pugh <[email protected]>
AuthorDate: Thu Feb 26 18:24:39 2026 -0500
Single space, not double space between usage: and tool name (#4167)
---
solr/core/src/java/org/apache/solr/cli/SolrCLI.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/cli/SolrCLI.java
b/solr/core/src/java/org/apache/solr/cli/SolrCLI.java
index 2db5bee9263..4a2fba89a86 100755
--- a/solr/core/src/java/org/apache/solr/cli/SolrCLI.java
+++ b/solr/core/src/java/org/apache/solr/cli/SolrCLI.java
@@ -342,7 +342,10 @@ public class SolrCLI implements CLIO {
helpAppendable.setMaxWidth(120);
helpAppendable.setIndent(0);
helpAppendable.setLeftPad(0);
- return
HelpFormatter.builder().setHelpAppendable(helpAppendable).setShowSince(false).get();
+ HelpFormatter formatter =
+
HelpFormatter.builder().setHelpAppendable(helpAppendable).setShowSince(false).get();
+ formatter.setSyntaxPrefix("usage:");
+ return formatter;
}
/** Scans Jar files on the classpath for Tool implementations to activate. */