From 0f02e02d7735a7d4f9f45bcb796d0ccfe8af6e22 Mon Sep 17 00:00:00 2001 From: Orhan Toy Date: Thu, 5 Dec 2019 22:33:36 +0100 Subject: [PATCH] Consistent case in CLI option descriptions (#49635) This commit improves the casing of messages in the CLI help descriptions. --- libs/cli/src/main/java/org/elasticsearch/cli/Command.java | 6 +++--- .../java/org/elasticsearch/bootstrap/Elasticsearch.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/cli/src/main/java/org/elasticsearch/cli/Command.java b/libs/cli/src/main/java/org/elasticsearch/cli/Command.java index 2a270153f47..9ce77604a50 100644 --- a/libs/cli/src/main/java/org/elasticsearch/cli/Command.java +++ b/libs/cli/src/main/java/org/elasticsearch/cli/Command.java @@ -43,10 +43,10 @@ public abstract class Command implements Closeable { /** The option parser for this command. */ protected final OptionParser parser = new OptionParser(); - private final OptionSpec helpOption = parser.acceptsAll(Arrays.asList("h", "help"), "show help").forHelp(); - private final OptionSpec silentOption = parser.acceptsAll(Arrays.asList("s", "silent"), "show minimal output"); + private final OptionSpec helpOption = parser.acceptsAll(Arrays.asList("h", "help"), "Show help").forHelp(); + private final OptionSpec silentOption = parser.acceptsAll(Arrays.asList("s", "silent"), "Show minimal output"); private final OptionSpec verboseOption = - parser.acceptsAll(Arrays.asList("v", "verbose"), "show verbose output").availableUnless(silentOption); + parser.acceptsAll(Arrays.asList("v", "verbose"), "Show verbose output").availableUnless(silentOption); /** * Construct the command with the specified command description and runnable to execute before main is invoked. diff --git a/server/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java b/server/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java index 3513a967763..83cdf533e03 100644 --- a/server/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java +++ b/server/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java @@ -52,9 +52,9 @@ class Elasticsearch extends EnvironmentAwareCommand { // visible for testing Elasticsearch() { - super("starts elasticsearch", () -> {}); // we configure logging later so we override the base class from configuring logging + super("Starts Elasticsearch", () -> {}); // we configure logging later so we override the base class from configuring logging versionOption = parser.acceptsAll(Arrays.asList("V", "version"), - "Prints elasticsearch version information and exits"); + "Prints Elasticsearch version information and exits"); daemonizeOption = parser.acceptsAll(Arrays.asList("d", "daemonize"), "Starts Elasticsearch in the background") .availableUnless(versionOption);