We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When passing an argument via CLI that contains whitespace, it would be good if quoting was supported.
data class Configuration( val notesFileName: String )
--notes-file-name "My Clippings.txt"
The text was updated successfully, but these errors were encountered:
@jeggy How would you expect this to work?
Test case:
@Test fun `quote value`() { val expected = "expected is this" val configuration = Nullable().parse("-s", "\"$expected\"") expectThat(configuration).get { str } isEqualTo expected }
Output:
is equal to "expected is this" found ""expected is this""
Sorry, something went wrong.
I would expect it to look at the first character and if that first character is " or ', then it would read anything in between those.
"
'
hello world
hello
"hello world"
D'vloper
'Martin D\'vloper'
Martin D'vloper
"Martin D'vloper"
@jeggy Actually this looks like a regression. I can see we have code that aims to support this.
AndreasVolkmann
Successfully merging a pull request may close this issue.
When passing an argument via CLI that contains whitespace, it would be good if quoting was supported.
--notes-file-name "My Clippings.txt"
The text was updated successfully, but these errors were encountered: