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 2008/07/25 11:19:31 UTC

[jira] Created: (CLI-160) Partial matching for long options

Partial matching for long options
---------------------------------

                 Key: CLI-160
                 URL: https://issues.apache.org/jira/browse/CLI-160
             Project: Commons CLI
          Issue Type: Improvement
          Components: Parser
    Affects Versions: 1.0
            Reporter: Emmanuel Bourg
             Fix For: 1.3


Partial matching is a common feature among command line processing tools. It allows to use shorter option names as long as the abbreviation is not ambiguous.

For example on Debian 

{noformat}ls --he{noformat} 

is equivalent to 

{noformat}ls --help{noformat}

but 

{noformat}ls --h{noformat} 

returns the error "option `--h' is ambiguous", because 'h' is also the prefix of the --hide option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CLI-160) Partial matching for long options

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

Emmanuel Bourg resolved CLI-160.
--------------------------------

    Resolution: Fixed

This is fully implemented in the DefaultParser. Even for long options starting with a single dash (-ver) or having an argument (-verbo=9).

> Partial matching for long options
> ---------------------------------
>
>                 Key: CLI-160
>                 URL: https://issues.apache.org/jira/browse/CLI-160
>             Project: Commons CLI
>          Issue Type: Improvement
>          Components: Parser
>    Affects Versions: 1.0
>            Reporter: Emmanuel Bourg
>            Assignee: Emmanuel Bourg
>             Fix For: 1.3
>
>
> Partial matching is a common feature among command line processing tools. It allows to use shorter option names as long as the abbreviation is not ambiguous.
> For example on Debian 
> {noformat}ls --he{noformat} 
> is equivalent to 
> {noformat}ls --help{noformat}
> but 
> {noformat}ls --h{noformat} 
> returns the error "option `--h' is ambiguous", because 'h' is also the prefix of the --hide option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.