Croway commented on code in PR #9987:
URL: https://github.com/apache/camel/pull/9987#discussion_r1188661363


##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java:
##########
@@ -67,9 +68,28 @@ public Integer call() throws Exception {
             configureLoggingOff();
         }
 
+        replacePlaceholders();
+
         return doCall();
     }
 
+    private void replacePlaceholders() throws Exception {
+        for (CommandLine.Model.ArgSpec argSpec : spec.args()) {
+            String defaultValue = 
spec.defaultValueProvider().defaultValue(argSpec);

Review Comment:
   exactly, the `defaultValueProvider()` loads the value from the properties 
file (updated via `camel config set`)



-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to