This is an automated email from the ASF dual-hosted git repository.

epugh pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new e97a9b5d7b3 SOLR-17528: Match PackageTool use of -y (#2813)
e97a9b5d7b3 is described below

commit e97a9b5d7b3f3728064dda2e1922dd97d60f6d73
Author: Eric Pugh <[email protected]>
AuthorDate: Tue Oct 29 09:49:52 2024 -0400

    SOLR-17528: Match PackageTool use of -y (#2813)
    
    --no-prompt now has short version -y
    
    (cherry picked from commit 42f8e485446c3bb82aa5d0cd0ef7196059ddc8fb)
---
 solr/CHANGES.txt                                           | 2 ++
 solr/core/src/java/org/apache/solr/cli/RunExampleTool.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index d7ab056b87d..b154129a992 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -41,6 +41,8 @@ Improvements
   enqueuing with a risk of rejection. Solr will use less resources under 
stress but to get the most
   of your machine, you may want to increase the thread pool. (David Smiley)
 
+* SOLR-17528: Introduce -y short option to bin/solr start --no-prompt option. 
Aligns with bin/solr package tool.  (Eric Pugh)
+
 Optimizations
 ---------------------
 * SOLR-14985: Solrj CloudSolrClient with Solr URLs had serious performance 
regressions (since the
diff --git a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java 
b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
index eafd0d9c280..dc5f0b2d3f2 100644
--- a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
+++ b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
@@ -89,7 +89,7 @@ public class RunExampleTool extends ToolBase {
   @Override
   public List<Option> getOptions() {
     return List.of(
-        Option.builder()
+        Option.builder("y")
             .longOpt("no-prompt")
             .required(false)
             .desc(

Reply via email to