Next: option attributes, Previous: information attributes, Up: Option Definitions [Contents][Index]
When AutoOpts generates the code to parse the command line options, it has
the ability to produce any of several types of main() procedures.
This is done by specifying a global structured value for
main. The values that it contains are dependent on the value set for
the one value it must have: main-type.
The recognized values for main-type are guile,
shell-process, shell-parser, main, include,
invoke, and for-each.
| • main guile | guile: main and inner_main procedures | |
| • main shell-process | shell-process: emit Bourne shell results | |
| • main shell-parser | shell-parser: emit Bourne shell script | |
| • main main | main: user supplied main procedure | |
| • main include | include: code emitted from included template | |
| • main invoke | invoke: code emitted from AutoGen macro | |
The | ||
|---|---|---|
| • main for-each | for-each: perform function on each operand | |
| • main-for-each-proc | procedure to handle each argument | |
| • main-for-each-type | handler procedure type | |
| • main-for-each-code | code for handler procedure | |
| • main-for-each-opts | for-each main procedure options | |