|
How to use PABCMD.EXE |
Top Previous Next |
|
The standalone command-line version PABCMD.EXE is useful when you want to automate the process of creating documentation. For example, you may want to integrate Pascal Browser into your build process.
PABCMD.EXE uses exactly the same engine as the GUI version PAB.EXE and produces the same output. You run PABCMD.EXE from the command prompt using the following syntax:
PABCMD projectpath|sourcepath [options]
Options are read from PAB.INI. Some of the settings may be overridden by options on the command-line (see above).
The command-line version can, in contrast to the GUI version, also analyze source code without first creating a project. Just supply a source code path on the command-line instead of a project path. PABCMD will then use the settings according to the template which is used for new projects.
If an error occurs when PABCMD is run, the application terminates with exit code 99.
Example:
PABCMD c:\projects\MyProj.pbr
Runs PABCMD and analyses the project c:\projects\MyProj.pbr
PABCMD c:\Units\MyUnits.pas /FM- /CBP
Runs PABCMD and analyses c:\projects\MyProj.dpr with defaults as set in PAB.INI, but specifies that only the main file should be parsed, and that the compiler target is Borland Pascal 7.
See also:
How to use PAB.EXE
|