Different versions of a package may be loaded in dif- ferent interpreters. The generated index will manage to delay loading the package until the use of one of the commands provided by the package, instead of loading it immediately upon package require . The index process will pre-load any packages that exist in the current interpreter and match pkgPat into the slave interpreter used to generate the index. The pattern match uses string match rules. Generate output during the indexing process.
Output is via the tclLog procedure, which by default prints to stderr.
End of the flags, in case dir begins with a dash. The first time a package require command is invoked, the package unknown script is invoked. Thus, after invoking package require you may not see the package's commands in the interpreter, but you will be able to invoke the commands and they will be auto-loaded. These issues are described in detail below. If each script or file contains one package, and packages are only contained in one file, then things are easy.