<option-parser>

Parses a single command-line option and any parameters.

Different types of command-line options are parsed according to different rules.  An <option-parser> knows how to handle one type of option.  The long-options: and short-options: keywords are used to specify which option names should be handled by a given parser.

An option parser can be connected to an <argument-list-parser> via add-option-parser.

Exported from

Modifiers

abstract primary open

Make keywords

long-options:An instance of <list>.  Specifies the long options handled by this parser, represented as strings.  Defaults to #().
short-options:An instance of <list>.  Specifies the short options handled by this parser, represented as strings.  Defaults to #().
description:An instance of <string>.  A description of the options handled by this parser.  Defaults to “”.

Superclasses

Subclasses

Functions on <option-parser>

Functions returning <option-parser>

Parses a single command-line option and any parameters.
Describes how to parse an argument list, and contains the data found when parsing one.
Attaches an <option-parser> to an <argument-list-parser>.
The command-line-parser module.
The class of linked lists.
The class of sequences with elements that are characters.
The class of all Dylan objects.
A class.
Parses command-line options which may appear in positive and negative forms, such as “--verbose” and “--quiet”.
A class.
Parses options which have a parameter and which may appear only once.
Parses options which have a parameter and which may appear more than once.
Tests whether an option was present on the command-line.
Returns the value found by an option parser after processing the command line.
Changes the option value of an <option-parser>.
A generic function.
A generic function.
Find an option parser, given a corresponding option name.