From 30d34cb95abb3979a65eb427230ad21584e3cb40 Mon Sep 17 00:00:00 2001 From: Eric Pugh Date: Tue, 1 Oct 2024 16:08:15 -0400 Subject: [PATCH] SOLR-17442: Fix a errant deprecation of --debug and properly look up --verbose (#2732) getOpt and getLongOpt are not equivalent. getOpt only works if you have a one letter version of a command, so use getLongOpt for the --verbose flag. --- .../core/src/java/org/apache/solr/cli/AssertTool.java | 11 ++++++++++- solr/core/src/java/org/apache/solr/cli/SolrCLI.java | 11 +++-------- solr/core/src/java/org/apache/solr/cli/ToolBase.java | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/cli/AssertTool.java b/solr/core/src/java/org/apache/solr/cli/AssertTool.java index 73f9cc761b6..dabbe2aaa8d 100644 --- a/solr/core/src/java/org/apache/solr/cli/AssertTool.java +++ b/solr/core/src/java/org/apache/solr/cli/AssertTool.java @@ -129,9 +129,18 @@ public List