commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLI-217) Optional partial matching for long options
Date Fri, 23 Jun 2017 11:25:00 GMT

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

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

GitHub user rubin55 opened a pull request:

    https://github.com/apache/commons-cli/pull/15

    CLI-217: Optional partial matching

    At request of Gary, I (re)created an old patch against the current code base to enable
partial matching to be set as optional. This fixes problems for people that have short options
that, concatenated, also partial-match a long option.
    
    For example:
        -d, --debug
        -e, --extract
    
        foo -de
    
    Is ambiguous in the case that partial matching is enabled. This patch allows a user to
turn off partial matching in such a case.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rubin55/commons-cli master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-cli/pull/15.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #15
    
----
commit 186612c45b973f0b2f9e7a5a9ee97a6e3bfc3cad
Author: Rubin Simons <rubin@raaftech.com>
Date:   2017-06-22T13:33:03Z

    Ignore IDE specific files

commit 6e7850b99024032c8cf4979d2eea61302dfd6a09
Author: Rubin Simons <rubin@raaftech.com>
Date:   2017-06-23T09:51:56Z

    Ignore IntelliJ IDEA files too

commit bdb4a09ceaceab7e3d214b1beadb93bd9c911342
Author: Rubin Simons <rubin@raaftech.com>
Date:   2017-06-23T11:04:27Z

    Added support for disabling partial option matching

commit 4f17a89ad04bcf718aeac43d202f8c261ce0b796
Author: Rubin Simons <rubin@raaftech.com>
Date:   2017-06-23T11:04:59Z

    Added tests for partial matching enable/disable

----


> 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)

Mime
View raw message