[ 
https://issues.apache.org/jira/browse/CLI-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16106173#comment-16106173
 ] 

ASF GitHub Bot commented on CLI-217:
------------------------------------

Github user rubin55 commented on the issue:

    https://github.com/apache/commons-cli/pull/15
  
    @chtompki Well, 216 is about disabling concatenated options, and 217 is 
about disabling partial matching; my patch implements the latter, i.e, you 
still have concatenated options, but can opt to disable partial matching:
    
        foo -ver
            !=
        foo --version
    
    So in the above, -ver could be a concatenated set of options, which, with 
the help of this patch, does not erronuously get interpreted as a partially 
matched long option 'version'.


> Optional partial matching for long options
> ------------------------------------------
>
>                 Key: CLI-217
>                 URL: https://issues.apache.org/jira/browse/CLI-217
>             Project: Commons CLI
>          Issue Type: Improvement
>          Components: Parser
>    Affects Versions: 1.3
>            Reporter: Emmanuel Bourg
>         Attachments: CLI-217.patch, optPartialMatch.patch
>
>
> DefaultParser support partial long options (i.e --ver matches --version if 
> there is no ambiguity), but for some cases it might be necessary to disable 
> this feature.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to