Re: [cli][patch] parsing option arguments which have a default

2006-04-18 Thread Andrew Shirley
On Thu, Apr 13, 2006 at 03:19:24PM +0100, Andrew Shirley wrote: > Hi, > > I have found a bug in the following scenario: > You have an option which can take a single argument which in turn has a > default > value. You supply a value on the command line which is intended to override > this default

Re: [cli][patch] parsing option arguments which have a default

2006-04-13 Thread Andrew Shirley
> Please find attached a patch and a testsuite. :-) Index: src/java/org/apache/commons/cli2/commandline/WriteableCommandLineImpl.java === --- src/java/org/apache/commons/cli2/commandline/WriteableCommandLineImpl.java (revision 3863

[cli][patch] parsing option arguments which have a default

2006-04-13 Thread Andrew Shirley
Hi, I have found a bug in the following scenario: You have an option which can take a single argument which in turn has a default value. You supply a value on the command line which is intended to override this default however as the CommandLine already has a value for this Option, this second val