unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* getopt-long bug?
@ 2015-11-19 22:22 Marko Rauhamaa
  0 siblings, 0 replies; only message in thread
From: Marko Rauhamaa @ 2015-11-19 22:22 UTC (permalink / raw)
  To: guile-user


I'm using (ice-9 getopt-long) with Guile 2.0.11.

The documentation (<URL: https://www.gnu.org/software/guile/manual/htm
l_node/getopt_002dlong-Reference.html#getopt_002dlong-Reference>)
states:

   getopt-long signals an error if [...]

       A required option is omitted.

The leading comment in the source file is even more explicit:

   ;;; `getopt-long' throws an exception if:
   [...]
   ;;; - a required option is omitted

However, in reality, no exception is thrown. Instead, (getopt-long)
writes an English error message to stderr and calls (exit 1).

I would much prefer the documented behavior. A library function should
neither write to a file nor exit the program unless explicitly requested
by the caller.


Marko



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-19 22:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-19 22:22 getopt-long bug? Marko Rauhamaa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).