Re: [cli] New Parser available

2009-05-31 Thread Russel Winder
Emmanuel, On Sat, 2009-05-30 at 23:38 +0200, Emmanuel Bourg wrote: James Ring a écrit : I think partial matching should be disabled by default. While a neat feature to reduce typing, this behaviour will probably come as a surprise to people because it is not found in most programs. Also,

[cli] New Parser available

2009-05-30 Thread Emmanuel Bourg
The new parser has landed, get it while it's hot! It implements the features of the other parsers and more: - partial matching for the long options (-ver instead of -version) - options like Java memory settings are supported (-Xmx512m) - several corner cases have been fixed The parser passes

Re: [cli] New Parser available

2009-05-30 Thread Jim Jagielski
Very cool! You are taking all the fun stuff :) On Sat, May 30, 2009 at 04:13:38PM +0200, Emmanuel Bourg wrote: The new parser has landed, get it while it's hot! It implements the features of the other parsers and more: - partial matching for the long options (-ver instead of -version) -

Re: [cli] New Parser available

2009-05-30 Thread Russel Winder
On Sat, 2009-05-30 at 16:13 +0200, Emmanuel Bourg wrote: The new parser has landed, get it while it's hot! 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 ? - options like Java

Re: [cli] New Parser available

2009-05-30 Thread Emmanuel Bourg
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

Re: [cli] New Parser available

2009-05-30 Thread James Ring
Hey, On Sat, May 30, 2009 at 11:30 AM, Emmanuel Bourg ebo...@apache.org wrote: 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

Re: [cli] New Parser available

2009-05-30 Thread sebb
On 30/05/2009, James Ring s...@jdns.org wrote: Hey, On Sat, May 30, 2009 at 11:30 AM, Emmanuel Bourg ebo...@apache.org wrote: Russel Winder a écrit : It implements the features of the other parsers and more: - partial matching for the long options (-ver instead of -version)

Re: [cli] New Parser available

2009-05-30 Thread Emmanuel Bourg
Jim Jagielski a écrit : Very cool! You are taking all the fun stuff :) Don't worry the party isn't over ;) I have a couple of things in mind like the option aliases, but I don't have the time to implement it yet. Emmanuel Bourg

Re: [cli] New Parser available

2009-05-30 Thread Emmanuel Bourg
James Ring a écrit : I think partial matching should be disabled by default. While a neat feature to reduce typing, this behaviour will probably come as a surprise to people because it is not found in most programs. Also, if an option is not completely specified, I know I'd like the program to