Next: , Previous: , Up: getopts   [Index]


16.3 Parser configuration

Enumeration: getopts-configuration

Enumeration to be used to configure the getopts parser. It contains the following symbols:

delayed

If given, action closures invocations are returned in a list rather that immediately evaluated; this allows getopts to parse the whole command line without changing the state of the program.

The returned list has a thunk for each semantic action, in the same order in which the corresponding arguments appear on the command line. We can evaluate the thunks with:

(let ((thunks (getopts ---)))
  (for-each (lambda (T) (T)) thunks))
ignore-multiple-double-dashes

The first double–dash argument, ‘--’, always marks the end of options. If this option is given, multiple ‘--’ after the first are all ignored; else they are interpreted as non–option arguments.

Syntax: getopts-options symbol ...

Expand into an enumerated set of symbols to be used to configure the operations of the getopts parser.