Node:getopt-long Reference, Next:option-ref Reference, Previous:Command Line Format, Up:getopt-long
getopt-long
getopt-long args grammar | Scheme Procedure |
Parse the command line given in args (which must be a list of
strings) according to the option specification grammar.
The grammar argument is expected to be a list of this form:
where each option is a symbol denoting the long option, but
without the two leading dashes (e.g. For each option, there may be list of arbitrarily many property/value pairs. The order of the pairs is not important, but every property may only appear once in the property list. The following table lists the possible properties:
|
getopt-long
's args parameter is expected to be a list of
strings like the one returned by command-line
, with the first
element being the name of the command. Therefore getopt-long
ignores the first element in args and starts argument
interpretation with the second element.
getopt-long
signals an error if any of the following conditions
hold.
--opt=value
syntax).