commons-issues mailing list archives

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


ASF GitHub Bot commented on CLI-217:

GitHub user rubin55 opened a pull request:

    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 master

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

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 <>
Date:   2017-06-22T13:33:03Z

    Ignore IDE specific files

commit 6e7850b99024032c8cf4979d2eea61302dfd6a09
Author: Rubin Simons <>
Date:   2017-06-23T09:51:56Z

    Ignore IntelliJ IDEA files too

commit bdb4a09ceaceab7e3d214b1beadb93bd9c911342
Author: Rubin Simons <>
Date:   2017-06-23T11:04:27Z

    Added support for disabling partial option matching

commit 4f17a89ad04bcf718aeac43d202f8c261ce0b796
Author: Rubin Simons <>
Date:   2017-06-23T11:04:59Z

    Added tests for partial matching enable/disable


> Optional partial matching for long options
> ------------------------------------------
>                 Key: CLI-217
>                 URL:
>             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

View raw message