SplitCommand procedure
Splits command line into executable and options
Declaration
procedure SplitCommand(const Cmd: string; out Exe: string;
out Options: string)Arguments
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.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
