help-gengetopt
[Top][All Lists]
Advanced

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

[help-gengetopt] gengetopt: bug found in gm.cc:584


From: Ch'Gans
Subject: [help-gengetopt] gengetopt: bug found in gm.cc:584
Date: Wed, 13 Sep 2006 10:57:19 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

Hi all,

I found a bug when using --long-help, I have used genpetopt 2.17
(manually installed on a mandriva 10.1), with and without my last patch,
and the gengetopt shipped with my distro (2.12.2). All these version
lead to the bug.
I have added this printf below the bug location:
fprintf (stderr, "typestr=%s, @typestr=%p, short_opt=%s, long_opt=%s,
opt_type=%d\n", type_str, type_str, opt->short_opt, opt->long_opt,
opt->type);

address@hidden tmp]$ gengetopt --version
GNU gengetopt 2.17
[...]
address@hidden tmp]$ cat bug.ggo
option "option-noarg" - "option with no arg" required
address@hidden tmp]$ gengetopt < bug.ggo
address@hidden tmp]$ gengetopt --long-help < bug.ggo
gengetopt: bug found in gm.cc:584!!
typestr=,®
        , @typestr=0xbffff320, short_opt=(null), long_opt=option-noarg,
opt_type=0
Aborted
address@hidden tmp]$ /usr/bin/gengetopt --version
GNU gengetopt 2.12.2
[...]
address@hidden tmp]$ /usr/bin/gengetopt --long-help < bug.ggo
gengetopt:2: syntax error r
gengetopt:2: option "option-noarg" - "option with no arg" required
gengetopt:2:
address@hidden tmp]$ vi bug.ggo
address@hidden tmp]$ cat bug.ggo
option "option-noarg" - "option with no arg" yes
address@hidden tmp]$ /usr/bin/gengetopt --long-help < bug.ggo
gengetopt: bug found in gm.cc:572!!
Aborted
address@hidden tmp]$ /usr/bin/gengetopt < bug.ggo
address@hidden tmp]$

Regards,
Christian






reply via email to

[Prev in Thread] Current Thread [Next in Thread]