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

sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-launchpad-comparator.git


The following commit(s) were added to refs/heads/master by this push:
     new b7acf1f  fix argument handling
b7acf1f is described below

commit b7acf1f7ffd823cedfc00d36970b732bd8e69726
Author: Stefan Seifert <[email protected]>
AuthorDate: Wed Nov 19 16:50:25 2025 +0100

    fix argument handling
---
 src/main/java/org/apache/sling/tooling/lc/Main.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/tooling/lc/Main.java 
b/src/main/java/org/apache/sling/tooling/lc/Main.java
index b827743..6f48cbc 100644
--- a/src/main/java/org/apache/sling/tooling/lc/Main.java
+++ b/src/main/java/org/apache/sling/tooling/lc/Main.java
@@ -25,11 +25,11 @@ public class Main {
         String firstVersion = "12";
         String secondVersion = "13-SNAPSHOT";
         String output = "plaintext";
-        if (args.length == 2) {
+        if (args.length >= 2) {
             firstVersion = args[0];
             secondVersion = args[1];
         }
-        if (args.length == 3) {
+        if (args.length >= 3) {
             output = args[2];
         }
 

Reply via email to