Skip to content

SplitCommand

Splits command line into executable and options

Declaration

Source position: fpmkunit.pp line 1722

procedure SplitCommand(const Cmd: string; out Exe: string; 
                      out Options: string);

Arguments

Name Description
Cmd Complete command line to split
Exe Extracted executable name
Options Extracted command line options

Description

SplitCommand parses a complete command line string and separates it into the executable name and its command-line options. This procedure handles quoted arguments and proper command-line parsing for the build system.

The procedure populates separate output parameters with the executable name and the remaining options.