[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Work logged] (CLI-254) "test" gets parsed as test, quotes die :-(
From:       "ASF GitHub Bot (Jira)" <jira () apache ! org>
Date:       2021-01-29 20:18:00
Message-ID: JIRA.12839562.1434982155000.540437.1611951480260 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/CLI-254?focusedWorklogId=544474&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-544474 \
]

ASF GitHub Bot logged work on CLI-254:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jan/21 20:17
            Start Date: 29/Jan/21 20:17
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on pull request #58:
URL: https://github.com/apache/commons-cli/pull/58#issuecomment-770027092


   
   [![Coverage Status](https://coveralls.io/builds/36709530/badge)](https://coveralls.io/builds/36709530)
  
   Coverage increased (+0.03%) to 96.385% when pulling \
**14e7d401937bda5f32d9f43928c72ff073ba0dca on stoty:CLI-254** into \
**e093df2c10db91ab24694596b95dcc05d379ba08 on apache:master**.  


----------------------------------------------------------------
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:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 544474)
    Time Spent: 20m  (was: 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: 20m
> 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic