Skip to content

Commit 0f02e02

Browse files
orhantoyrjernst
authored andcommitted
Consistent case in CLI option descriptions (#49635)
This commit improves the casing of messages in the CLI help descriptions.
1 parent fec882a commit 0f02e02

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libs/cli/src/main/java/org/elasticsearch/cli/Command.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public abstract class Command implements Closeable {
4343
/** The option parser for this command. */
4444
protected final OptionParser parser = new OptionParser();
4545

46-
private final OptionSpec<Void> helpOption = parser.acceptsAll(Arrays.asList("h", "help"), "show help").forHelp();
47-
private final OptionSpec<Void> silentOption = parser.acceptsAll(Arrays.asList("s", "silent"), "show minimal output");
46+
private final OptionSpec<Void> helpOption = parser.acceptsAll(Arrays.asList("h", "help"), "Show help").forHelp();
47+
private final OptionSpec<Void> silentOption = parser.acceptsAll(Arrays.asList("s", "silent"), "Show minimal output");
4848
private final OptionSpec<Void> verboseOption =
49-
parser.acceptsAll(Arrays.asList("v", "verbose"), "show verbose output").availableUnless(silentOption);
49+
parser.acceptsAll(Arrays.asList("v", "verbose"), "Show verbose output").availableUnless(silentOption);
5050

5151
/**
5252
* Construct the command with the specified command description and runnable to execute before main is invoked.

server/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class Elasticsearch extends EnvironmentAwareCommand {
5252

5353
// visible for testing
5454
Elasticsearch() {
55-
super("starts elasticsearch", () -> {}); // we configure logging later so we override the base class from configuring logging
55+
super("Starts Elasticsearch", () -> {}); // we configure logging later so we override the base class from configuring logging
5656
versionOption = parser.acceptsAll(Arrays.asList("V", "version"),
57-
"Prints elasticsearch version information and exits");
57+
"Prints Elasticsearch version information and exits");
5858
daemonizeOption = parser.acceptsAll(Arrays.asList("d", "daemonize"),
5959
"Starts Elasticsearch in the background")
6060
.availableUnless(versionOption);

0 commit comments

Comments
 (0)