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

nlohmann <[email protected]> Sun, 24 Feb 2008 04:37:08 -0800 (PST)
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
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.
-- 
View this message in context: http://www.nabble.com/Bug-report%3A-combination-between-%22enum%22-and-%22--long-help%22-tp15618937p15618937.html
Sent from the Gnu - Gengetopt - Help mailing list archive at Nabble.com.