[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ ? ]

7.5.4 Generating main procedures

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.

7.5.4.1 guile: main and inner_main procedures
7.5.4.2 shell-process: emit Bourne shell results
7.5.4.3 shell-parser: emit Bourne shell script
7.5.4.4 main: user supplied main procedure
7.5.4.5 include: code emitted from included template
7.5.4.6 invoke: code emitted from AutoGen macro
The for-each main procedure has a number of attributes that
must be specified:
7.5.4.7 for-each: perform function on each operand
procedure to handle each argument
handler procedure type
code for handler procedure
for-each main procedure options

[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ ? ]

This document was generated by Bruce Korb on August 21, 2015 using texi2html 1.82.

AltStyle によって変換されたページ (->オリジナル) /