Previous: getopts parser, Up: getopts [Index]
When getopts
detects an error in the input command line
arguments, it raises a continuable exception; returning from the
exception is possible and makes getopts
go on parsing with the
next argument. It is not always advisable to continue parsing after an
error has been signaled.
The raised exception values are compound condition of the types described below.
Base type for all the condition objects thrown by getopts
; it is
derived from &error
. It has no fields.
Constructor and predicate for the &getopts
condition object.
Data condition type used to hold records of type
command-line-option
describing an option involved in an error; it
is derived from &condition
.
Constructor and predicate for the &option
condition object.
Accessor for the option
field of a &option
condition
object.
Data condition type used to hold Scheme strings representing command
line arguments involved in an error; it is derived from
&condition
.
Constructor and predicate for the &argument
condition object.
Accessor for the argument
field of a &argument
condition
object.
Data condition type used to hold Scheme strings or characters
representing option selectors involved in an error; it is derived from
&condition
.
Constructor and predicate for the &brief/long
condition object.
Accessor for the field of a &brief/long
condition object.
Condition type used to signal an “unknown option” error; it is derived
from &getopts
. It has no fields.
Constructor and predicate for &unknown-option
condition objects.
Raise a continuable exception describing an “unknown option” error;
the raised object is a compound condition with components of the
following types: &who
, &brief/long
, &argument
,
&message
.
Condition type used to signal an “option requires value” error; it is
derived from &getopts
. It has no fields.
Constructor and predicate for &option-requires-value
condition
objects.
Raise a continuable exception describing an “option requires value”
error; the raised object is a compound condition with components of the
following types: &who
, &option
, &argument
,
&message
.
Condition type used to signal an “option requires no value” error; it
is derived from &getopts
. It has no fields.
Constructor and predicate for &option-requires-no-value
condition
objects.
Raise a continuable exception describing an “option requires no value”
error; the raised object is a compound condition with components of the
following types: &who
, &option
, &argument
,
&message
.
Condition type used to signal an “invalid option” error; it is derived
from &getopts
. It has no fields.
Constructor and predicate for &invalid-option
condition objects.
Raise a continuable exception describing an “invalid option” error;
the raised object is a compound condition with components of the
following types: &who
, &option
,
&argument
, &message
.
Previous: getopts parser, Up: getopts [Index]