Consistent case in CLI option descriptions (#49635)
This commit improves the casing of messages in the CLI help descriptions.
This commit is contained in:
parent
fec882a457
commit
0f02e02d77
|
@ -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<Void> helpOption = parser.acceptsAll(Arrays.asList("h", "help"), "show help").forHelp();
|
||||
private final OptionSpec<Void> silentOption = parser.acceptsAll(Arrays.asList("s", "silent"), "show minimal output");
|
||||
private final OptionSpec<Void> helpOption = parser.acceptsAll(Arrays.asList("h", "help"), "Show help").forHelp();
|
||||
private final OptionSpec<Void> silentOption = parser.acceptsAll(Arrays.asList("s", "silent"), "Show minimal output");
|
||||
private final OptionSpec<Void> 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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue