Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3
-
None
-
None
-
None
Description
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 }
It fails on last entry: "test".
Attachments
Issue Links
- is related to
-
CLI-185 Commons CLI incorrectly stripping leading and trailing quotes
- Closed
-
PHOENIX-6349 Add and use commons-cli to phoenix-thirdparty
- Closed
- is required by
-
GROOVY-7352 CliBuilder kills head/tail quotes from argument
- Open
- relates to
-
PHOENIX-3710 Cannot use lowername data table name with indextool
- Resolved
- links to