-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map option problem when value contains '=' separator (was: How to quote / escape option values) #378
Comments
Thank you for reporting this. Looks like you have found a bug. The problem is that for Map options, picocli currently does not handle values containing a '=' character correctly. The fix is to call |
Note to self (Markus, please ignore): a test to reproduce the issue:
|
Awesome! Thanks for the very fast response. Looking forward to the fix. |
Picocli 3.0.1 is released with the fix for this bug. Thanks again for the bug report! |
Can you verify that this solves the problem? |
Yes, it's fixed. Thanks again! Btw, I've noticed that it doesn't work as expected if I use
with arguments |
Would you mind creating a new ticket for that to discuss further? |
Sure, I've created #379 |
I would like to pass a map of options into my application like:
-p AppOptions="-Dspring.profiles.active=test -Dspring.mail.host=smtp.mailtrap.io"
picocli seems to get confused by the equals sign in the value. My class:
I expect it to output the entire value, but I'm only getting
-Dspring.profiles.active
. How can I escape the value correctly?I don't want to make AppOptions part of my CLI directly, because I don't control the content and users should be able to pass in an arbitary set of parameters.
The text was updated successfully, but these errors were encountered: