Tasks related to input processing
A sequence of input files can be specified by positional parameters
on the command line if the Include module is instantiated
as follows:
$/Input/Include.gnrc +referto=positionals :inst
In this case, the CLP specification exported by the Include module
will be
(see Specifying the command line interface of Command line processing):
IncludeDirs "-I" joinedto strings
"Directories to search for included files";
Source input
"Primary input file";
Sources positionals
"Additional input files named on the command line";
The general form of a command line that can be recognized using this
CLP specification is:
- A program name, followed by
- An arbitrary number of
-I options, followed by
- One or more file names.
Here is an example:
DemoProc -IsubDir -I/usr/local/etc DemoText AddedText
The effect of this command line is that the input text to DemoProc
consists of the
content of DemoText (with all inclusion commands expanded) followed
by the content of AddedText (with all inclusion commands expanded).
The CLP specification permits an arbitrary number of additional file names
(see Positional parameters of Command line processing).
Do not specify additional positional parameters in type-clp files
when using the Include module.
If it is necessary to provide file names on the command line for
purposes other than text input, use options to specify
those names
(see Value options of Command line processing).
|