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 Sat, 29 Jul 2017 16:46:02 GMT


ASF GitHub Bot commented on CLI-217:

Github user rubin55 commented on the issue:
    @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:
>             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