Aargh
The Options Aggregate
The Options element encloses a series of one or more elements, and
has no attributes of its own.
Each element defines a command line option, and must carry at least the
following attributes:
-
letter, whose value must be a single alphabetic character or, as
a special exception, a single hyphen. The generated code will recognize
this character as an option character on the command line.
-
name, whose value will be used to construct various member names
for the Opts struct or class, along with certain variable names within
the generated code.
Aargh does not try to verify that the resulting names will be valid names
in the target language. It also does not try to anticipate conflicts
among the generated names. Such conflicts are unlikely but possible. If
they appear when you compile the generated code, change the names as
needed in your XML file and regenerate the code.
For obvious reasons, no two options may use the same letter value
or the same name value.
Some option elements may include additional attributes, or enclose other
elements, in order to define the option further.
There are three types of option elements:
-
BoolOpt -- for options that take no arguments
-
IntOpt -- for options that take integer arguments
-
StringOpt -- for options that take character string
arguments