Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

SplitCommand

Splits command line into executable and options

Declaration

Source position: fpmkunit.pp line 1698

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.


Documentation generated on: Dec 15 2025