davsclaus commented on code in PR #30804:
URL: https://github.com/apache/camel/pull/30804#discussion_r4704480933


##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java:
##########
@@ -924,6 +924,12 @@ private int run() throws Exception {
             return CliExitCode.USAGE;
         }
 
+        if (camelVersion != null && 
!VersionHelper.isCamel4OrNewer(camelVersion)) {
+            printer().printErr("The --camel-version option does not support 
Camel " + camelVersion
+                               + ": the Camel CLI runs Camel 4.0 or newer.");

Review Comment:
   Fixed in 60c98c5d5bc9: the message now reads "Camel version X is not 
supported: the Camel CLI runs Camel 4.0 or newer.", the same as `camel version 
set`, since the version may also come from `camel version set` or 
`application.properties`.
   
   _Claude Code on behalf of davsclaus_



-- 
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]

Reply via email to