You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2011/04/21 13:17:05 UTC

[jira] [Created] (CLI-217) Optional partial matching for long options

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
             Fix For: 1.3


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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CLI-217) Optional partial matching for long options

Posted by "Christopher Pouliot (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLI-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119675#comment-13119675 ] 

Christopher Pouliot commented on CLI-217:
-----------------------------------------

Example: options 'a' and 'ab' are parsed as equivalent.
                
> 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
>             Fix For: 1.3
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CLI-217) Optional partial matching for long options

Posted by "Emmanuel Bourg (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLI-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149939#comment-13149939 ] 

Emmanuel Bourg commented on CLI-217:
------------------------------------

Thank you for the patch Hartmut. If I understand well you suggest to give to the exact matches the priority over the partial matches, right?
                
> 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
>             Fix For: 1.3
>
>         Attachments: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CLI-217) Optional partial matching for long options

Posted by "Hartmut Lang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLI-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13150308#comment-13150308 ] 

Hartmut Lang commented on CLI-217:
----------------------------------

Yes, this was the plan.
In my feeling that gives a good usage, see also the test-cases i added.
                
> 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
>             Fix For: 1.3
>
>         Attachments: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CLI-217) Optional partial matching for long options

Posted by "Hartmut Lang (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLI-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hartmut Lang updated CLI-217:
-----------------------------

    Attachment: optPartialMatch.patch

Added a patch that helps with partial matching without turning this feature off.
                
> 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
>             Fix For: 1.3
>
>         Attachments: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira