Cfpeek User Manual (split by section):   Section:   Chapter:FastBack: Invocation   Up: Invocation   FastForward: Exit Codes   Contents: Table of ContentsIndex: Concept Index

5.4 Scripting Options

The following options control the scripting facility of cfpeek.

-e expression
--expression=expression

Apply this expression to each node found. The global variable node is set to the node being processed before evaluating. When used together with --file=script, the expression can refer to any variables and call any functions defined in the script file.

-f file
--file=file

Load the script file. Unless --expression is also given, the script must define the function named ‘cfpeek’ which takes a node as its only argument. This function will be called for each matching node.

If --expression is given, this behavior is suppressed. It is then the responsibility of the expression to call any functions defined in this file.

-i expr
--init=expr

The --init=expr (-i expr) option provides an initialization expression expr. This expression is evaluated once, after loading the script file, if one is specified, and before starting the main loop.

-l script-language
--lang=script-language

Select scripting language to use. This option is reserved for further use. As of version 1.2, the only possible value for script-language is ‘scheme’.

Cfpeek User Manual (split by section):   Section:   Chapter:FastBack: Invocation   Up: Invocation   FastForward: Exit Codes   Contents: Table of ContentsIndex: Concept Index