GEOS SDK TechDocs
|
|
1 DOS Command Line Options
|
3 Address Expressions
The rest of this chapter is devoted to interacting with Swat once you have it running. Most of this is done by means of commands typed at a prompt. Some Swat commands may have subcommands, some may have flag options, and some combine the two. Others may have special options; all, however, are documented with the following conventions.
command (alternative1|alternative2|...|alternativeN)
The parentheses enclose a set of alternatives separated by vertical lines (in C, the bitwise OR operator character). For example, the expression
quit (cont|leave)
means that either
quit cont
or
quit leave
can be used.
command <type_of_argument>
The angled brackets enclose the type of an argument rather than the actual string to be typed. For example,
<addr>
indicates an address expression and
<argument>
indicates some sort of argument.
command [optional_argument]
The brackets enclose optional arguments to the command. For example, the command
alias [<word>[<command>]]
could have zero, one, or two arguments because the command and word arguments are optional. Another example would be the command
objwalk [<addr>]
, which may take zero arguments if it is meant to use the default address or one argument if the user gives it a particular address to look at.
* +
An asterisk following any of the previous constructs indicates zero or more repetitions of the construct may be typed. A plus sign indicates one or more repetitions of the construct may be used. For example,
unalias
<word>*
can be the
unalias
command by itself, or it can be followed by a list of words to be unaliased.
GEOS SDK TechDocs
|
|
1 DOS Command Line Options
|
3 Address Expressions