Re: Bug report: combination between "enum" and "--long-help"

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Bug report: combination between "enum" and "--long-help"

by Lorenzo Bettini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

nlohmann wrote:

> Hello!
>
> I have the following .ggo file:
>
> -------------------------------------------
> option "mode" m
>   "User mode"
>   string values="simulation","matching" enum
>   typestr="MODE"
>   default="simulation"
>   optional
> -------------------------------------------
>
> When I call gengetop using
>
> gengetopt --input=cmdline.ggo --c-extension=cc --long-help --include-getopt
> --show-required
>
> I get the following message:
>
> gengetopt: bug found in gm.cc:636!!
>
> With
>
> gengetopt --input=cmdline.ggo --c-extension=cc --include-getopt
> --show-required
>
> (without "--long-help") everything is fine.
>
> When I change the .ggo file to
>
> -------------------------------------------
> option "mode" m
>   "User mode"
>   string values="simulation","matching"
>   typestr="MODE"
>   default="simulation"
>   optional
> -------------------------------------------
>
> (without "enum") then both above calls work OK.
>
> Cheers,
> Niels.

Hi Niels

this should be fixed in this temporary release:

http://gdn.dsi.unifi.it/~bettini/gengetopt-2.22.1.tar.gz

hope to hear from you soon
cheers
        Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


_______________________________________________
Help-gengetopt mailing list
Help-gengetopt@...
http://lists.gnu.org/mailman/listinfo/help-gengetopt