Splits command line into executable and options
Source position: fpmkunit.pp line 1698
procedure SplitCommand( |
const Cmd: string; |
out Exe: string; |
out Options: string |
); |
Cmd |
|
Complete command line to split |
Exe |
|
Extracted executable name |
Options |
|
Extracted command line options |
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.