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]

 

Option

Explanation

/A+        

Parse both source/form files

/A-

Parse source files only

/FA

Parse all files

/FR

Parse main file and directly used files

/FM

Parse main file only

/Q

Quiet mode



/CBP        

Borland Pascal 7 (or earlier)

/CD1

Delphi 1

/CD2

Delphi 2

/CD3

Delphi 3

/CD4

Delphi 4

/CD5

Delphi 5

/CD6

Delphi 6

/CD7

Delphi 7

/CD8

Delphi 8 for .NET

/CD9W

Delphi 2005 for Win32

/CD9N

Delphi 2005 for .NET

/CD10W

Delphi 2006 for Win32 (also Turbo Delphi for Win32)

/CD10N

Delphi 2006 for .NET   (also Turbo Delphi for .NET)

/CD11W

Delphi 2007 for Win32

/CD11N

Delphi 2007 for .NET

/CD12W

Delphi 2009 for Win32

/CD14W

Delphi 2010 for Win32

/CDXEW

Delphi XE for Win32

 

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: