You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/10/08 06:55:01 UTC
[PR] [4.18.x] CAMEL-25437: camel-jbang - --prop takes its value after a space too [camel]
davsclaus opened a new pull request, #27541:
URL: https://github.com/apache/camel/pull/27541
Backport of #27539 to camel-4.18.x.
https://issues.apache.org/jira/browse/CAMEL-25437
`camel run route.camel.yaml --prop greeting=FromProp` was silently ignored: `--prop` was declared with `arity = "0"`, so picocli accepted only the attached `--prop=key=value` form, and the separate `key=value` went on as a file to run. Dropping `arity = "0"` (on `camel run` and `camel script`) makes `--prop` take one value per occurrence, after a space or an equals sign.
Clean cherry-pick. `RunPropOptionTest` passes on this branch.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [4.18.x] CAMEL-25437: camel-jbang - --prop takes its value after a space too [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #27541:
URL: https://github.com/apache/camel/pull/27541#issuecomment-6054929728
Good catch: `camel cmd send` and `camel cmd receive` had the same `arity = "0"` on `--prop`. Fixed with a test (`CamelActionPropOptionTest`) in 68399a6c8bf2 on main, cherry-picked here for 4.18.x, and in a new PR for 4.22.x as #27540 had merged. No other non-boolean option has arity 0.
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [4.18.x] CAMEL-25437: camel-jbang - --prop takes its value after a space too [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #27541:
URL: https://github.com/apache/camel/pull/27541
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org