Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.

Next: , Previous: , Up: Guile Modules   [Contents][Index]


7.4 The (ice-9 getopt-long) Module

The (ice-9 getopt-long) facility is designed to help parse arguments that are passed to Guile programs on the command line, and is modelled after the C library’s facility of the same name (see Getopt in The GNU C Library Reference Manual). For a more low-level interface to command-line argument parsing, See SRFI-37.

The (ice-9 getopt-long) module exports two procedures: getopt-long and option-ref.

To make these procedures available to your Guile script, include the expression (use-modules (ice-9 getopt-long)) somewhere near the top, before the first usage of getopt-long or option-ref.