found 313175 2.11.2-10
retitle 313175 argp option OPTION_ARG_OPTIONAL not documented correctly
quit
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.
Drew Parsons a écrit :
Attached is a minimal test case showing the problem.
Compile with gcc -o minargp minargp.c,
run with somthing like ./minargp -r 15
to get
argument value for -r = (null)
repeat count has been set to 10
Expected behaviour:
argument value for -r =
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
Attached is a minimal test case showing the problem.
Compile with gcc -o minargp minargp.c,
run with somthing like ./minargp -r 15
to get
argument value for -r = (null)
repeat count has been set to 10
Expected behaviour:
argument value for -r = 15
repeat count
4 matches
Mail list logo