How to use PABCMD.EXE and PABCMD32.EXE

Top  Previous  Next

 

The standalone command-line version PABCMD.EXE (and 32-bits PABCMD32.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

/CDXE2W32

Delphi XE2 for Win32

/CDXE2W64

Delphi XE2 for Win64

/CDXE2OSX

Delphi XE2 for OSX

/CDXE3W32

Delphi XE3 for Win32

/CDXE3W64

Delphi XE3 for Win64

/CDXE3OSX

Delphi XE3 for OSX

/CDXE4W32

Delphi XE4 for Win32

/CDXE4W64

Delphi XE4 for Win64

/CDXE4OSX

Delphi XE4 for OSX

/CDXE4IOSDEV

Delphi XE4 for iOS Device

/CDXE4IOSSIM

Delphi XE4 for iOS Simulator

/CDXE5W32

Delphi XE5 for Win32

/CDXE5W64

Delphi XE5 for Win64

/CDXE5OSX

Delphi XE5 for OSX

/CDXE5IOSDEV

Delphi XE5 for iOS Device

/CDXE5IOSSIM

Delphi XE5 for iOS Simulator

/CDXE5ANDROID

Delphi XE5 for Android

/CDXE6W32

Delphi XE6 for Win32

/CDXE6W64

Delphi XE6 for Win64

/CDXE6OSX

Delphi XE6 for OSX

/CDXE6IOSDEV

Delphi XE6 for iOS Device

/CDXE6IOSSIM

Delphi XE6 for iOS Simulator

/CDXE6ANDROID

Delphi XE6 for Android

/CDXE7W32

Delphi XE7 for Win32

/CDXE7W64

Delphi XE7 for Win64

/CDXE7OSX

Delphi XE7 for OSX

/CDXE7IOSDEV

Delphi XE7 for iOS Device

/CDXE7IOSSIM

Delphi XE7 for iOS Simulator

/CDXE7ANDROID

Delphi XE7 for Android

/CDXE8W32

/CDXE8W64

/CDXE8OSX

/CDXE8IOSDEV

/CDXE8IOSDEV64

/CDXE8IOSSIM

/CDXE8ANDROID

Delphi XE8 for Win32

Delphi XE8 for Win64

Delphi XE8 for OSX

Delphi XE8 for iOS Device 32-bits

Delphi XE8 for iOS Device 64-bits

Delphi XE8 for iOS Simulator

Delphi XE8 for Android

/CD10W32

Delphi 10 for Win32

/CD10W64

Delphi 10 for Win64

/CD10OSX

Delphi 10 for OSX

/CD10IOSDEV

Delphi 10 for iOS Device 32-bits

/CD10IOSDEV64

Delphi 10 for iOS Device 64-bits

/CD10IOSSIM

Delphi 10 for iOS Simulator

/CD10ANDROID

Delphi 10 for Android

/CD101W32

Delphi 10.1 for Win32

/CD101W64

Delphi 10.1 for Win64

/CD101OSX

Delphi 10.1 for OSX

/CD101IOSDEV

Delphi 10.1 for iOS Device 32-bits

/CD101IOSDEV64

Delphi 10.1 for iOS Device 64-bits

/CD101IOSSIM

Delphi 10.1 for iOS Simulator

/CD101ANDROID

Delphi 10.1 for Android

/CD102W32

Delphi 10.2 for Win32

/CD102W64

Delphi 10.2 for Win64

/CD102OSX

Delphi 10.2 for OSX

/CD102IOSDEV

Delphi 10.2 for iOS Device 32-bits

/CD102IOSDEV64

Delphi 10.2 for iOS Device 64-bits

/CD102IOSSIM

Delphi 10.2 for iOS Simulator

/CD102ANDROID

Delphi 10.2 for Android

/CD102LINUX64

Delphi 10.2 for Linux 64-bits

/CD103W32

Delphi 10.3 for Win32

/CD103W64

Delphi 10.3 for Win64

/CD103OSX

Delphi 10.3 for OSX

/CD103IOSDEV

Delphi 10.3 for iOS Device 32-bits

/CD103IOSDEV64

Delphi 10.3 for iOS Device 64-bits

/CD103IOSSIM

Delphi 10.3 for iOS Simulator

/CD103ANDROID

Delphi 10.3 for Android

/CD103LINUX64

Delphi 10.3 for Linux 64-bits

 

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:

 

What's new in PAB 3.x (January 2018, updated December 2018)

What's new in PAB 2.x? (February 2014, updated May 2016)