Common Lisp Package: GETOPT

README:

FUNCTION

Public

GETOPT (ARGS OPTIONS)

Processes a list of arguments and options. Returns filtered argument list and alist of options. opts is a list of option lists. The fields of the list are - NAME name of the long option - HAS-ARG with legal values of :NONE, :REQUIRED, :OPTIONAL - VAL value to return for a option with no arguments

MATCH-UNIQUE-ABBREVIATION (ABBR STRINGS)

Returns position of ABBR in STRINGS. ABBR may be a unique abbreviation. Returns NIL if no match found.

Private

ANALYZE-ARG (ARG)

Analyzes an argument. Returns option-type,base-name,argument

DECOMPOSE-ARG (ARG OPTION-TYPE)

Returns base-name,argument

FIND-OPTION (NAME OPTIONS)

Find an option in option list. Handles using unique abbreviations

MATCH-OPTION (ARG OPTIONS)

Matches an argument to an option. Returns option-list,option-type,base-name,argument

Undocumented

IS-LONG-OPTION (ARG)

IS-OPTION-TERMINATOR (ARG)

IS-SHORT-OPTION (ARG)