Skip to content

Commit 6473e2a

Browse files
authored
Single space, not double space between usage: and tool name (apache#4167)
1 parent dc31be6 commit 6473e2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

solr/core/src/java/org/apache/solr/cli/SolrCLI.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ public void appendParagraph(CharSequence paragraph) throws IOException {
342342
helpAppendable.setMaxWidth(120);
343343
helpAppendable.setIndent(0);
344344
helpAppendable.setLeftPad(0);
345-
return HelpFormatter.builder().setHelpAppendable(helpAppendable).setShowSince(false).get();
345+
HelpFormatter formatter =
346+
HelpFormatter.builder().setHelpAppendable(helpAppendable).setShowSince(false).get();
347+
formatter.setSyntaxPrefix("usage:");
348+
return formatter;
346349
}
347350

348351
/** Scans Jar files on the classpath for Tool implementations to activate. */

0 commit comments

Comments
 (0)