[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#313175: test case for failing argp



On Thu, 2006-02-16 at 11:42 +0100, Aurelien Jarno wrote:

> Using "./minargp -r15" is working, but the documentation explicitly 
> states that a space is allowed between the argument and the value. So it 
> looks like a bug in the glibc. I will try to have a look when I find time.

Thanks for looking into it (and for pointing out that it works without
the space, I had missed that).  

There's the two ways of supplying the short option, -r 15 and -r15.
Thinking about it, I guess it sort of makes sense that the version with
the space won't work when the value is optional.  Otherwise it can't
tell if you mean a command line value of "15" together with the default
value of -r (=10), or whether you wanted to set r to 15.  Perhaps the
documentation needs to be cleaned up rather than the code?

Drew



Reply to: