[
https://issues.apache.org/jira/browse/CLI-254?focusedWorklogId=544172&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-544172
]
ASF GitHub Bot logged work on CLI-254:
--------------------------------------
Author: ASF GitHub Bot
Created on: 29/Jan/21 09:53
Start Date: 29/Jan/21 09:53
Worklog Time Spent: 10m
Work Description: stoty opened a new pull request #58:
URL: https://github.com/apache/commons-cli/pull/58
add a new constructor parameter to DefaultParser that disables quote
processing on option arguments
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 544172)
Remaining Estimate: 0h
Time Spent: 10m
> "test" gets parsed as test, quotes die :-(
> ------------------------------------------
>
> Key: CLI-254
> URL: https://issues.apache.org/jira/browse/CLI-254
> Project: Commons CLI
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Alexander Petrossian (PAF)
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code}
> def cli = new CliBuilder()
> cli.with {
> f longOpt:'json-filter','jq expression', args: 1
> }
> def vals = ['test', 't"es"t',
> "'test", "test'", "'test'",
> '"test', 'test"', '"test"']
> vals.each {
> def opt = cli.parse(['-f', it])
> assert opt.f == it
> }
> {code}
> It fails on last entry: "test".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)