janhoy commented on code in PR #3254:
URL: https://github.com/apache/solr/pull/3254#discussion_r3056999032


##########
solr/core/src/java/org/apache/solr/cli/VersionTool.java:
##########
@@ -33,6 +38,16 @@ public String getName() {
 
   @Override
   public void runImpl(CommandLine cli) throws Exception {
+    printVersion();
+  }
+
+  @Override
+  public int callTool() throws Exception {
+    printVersion();
+    return 0;
+  }
+
+  private void printVersion() {
     CLIO.out("Solr version is: " + SolrVersion.LATEST);

Review Comment:
   I knew we had a JIRA for this - here it is. Resolving this conversation here
   https://issues.apache.org/jira/browse/SOLR-17318



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to