commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CLI-160) Partial matching for long options
Date Sat, 30 May 2009 13:58:07 GMT

     [ 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.


Mime
View raw message