Previous: code for handler procedure, Up: Generating main procedures [Contents][Index]
for-each main procedure options
These attributes affect the main procedure and how it processes each argument or input line.
- ‘interleaved’ ¶
If this attribute is specified, then options and operands may be interleaved. Arguments or input lines beginning with a hyphen will cause it to be passed through to an option processing function and will take effect for the remainder of the operands (or input lines) processed.
- ‘main-init’ ¶
This is code that gets inserted after the options have been processed, but before the handler procs get invoked.
- ‘main-fini’ ¶
This is code that gets inserted after all the entries have been processed, just before returning from
main()
.- ‘comment-char’ ¶
When reading operands from standard input, if you wish comment lines to start with a character other than a hash (
#
) character, then specify one character with this attribute. If string value is empty, then only blank lines will be considered comments.