commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <>
Subject Re: [cli] New Parser available
Date Sat, 30 May 2009 18:30:45 GMT
Russel Winder a écrit :

>> It implements the features of the other parsers and more:
>> - partial matching for the long options (-ver instead of -version)
> What about -ver being -v -e -r ?

The partial matching of a long option has the priority over the
decomposition of the short options.

If you have the following options:



1. -ver will be parsed as -v (partial matching of 'verbose')
2. -rev will be parsed as -r -e -v (decomposition)

I wonder if I should add some settings to control the behavior of the
parser. For example, to disable the decomposition of the short options,
or to disable the partial matching of the long options starting with a
single dash (i.e --ver would still stand for --verbose, but not -ver).

Emmanuel Bourg

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message