Replies: 1 comment 2 replies
-
Hi @rcauble One idea: have you tried quoting the parameter that contains the space?
That said, I believe this is a JLine issue, not a picocli issue. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using a modified version of the picocli.shell.jline3.example.Example class in which I've added an Echo command to test string arguments.
My modification is to add an echo method to the Nested class:
As long as there's no space is WAI:
But if I try to add an escaped space character it gets an error:
Upon further digging, I added a println between the reader.readLine and the execute:
When I do that I see
So it seems that readLine has removed the escape character.
So I try double-escaping it:
But now echo prints "foo\ bar".
How do I escape it to make echo print "foo bar"?
Beta Was this translation helpful? Give feedback.
All reactions