Sign in Join
FPDoc Onlineexperiment

TProcessUTF8.ParseCmdLine procedure

Member of TProcessUTF8publicIn unit UTF8Process

Separates values in the CommandLine argument into the Executable and Parameters properties.

Declaration

pascal
procedure ParseCmdLine(const CmdLine: string; 
 ReadBackslash: Boolean=False)

Arguments

CmdLine

Command line examined and parsed in the method.

ReadBackslash

When True, the BackSlash character is used to quote character values.

Description

ParseCmdLine is used to separate the values in the CmdLine argument into the values used for the Executable and Parameters properties.

ReadBackSlash indicates if the BackSlash character ( \) is used to quote a character value in the command line. The default value for the argument is False.

ParseCmdLine creates an internal TStringList instance used to store values returned from the SplitCmdLineParams routine in lazfileutils.pas. The first value in the string list (when present) is stored in the Executable property. The remaining values are stored in the Parameters property.

ParseCmdLine is provided as a convenience method. The same result can be achieved by setting the values in the Executable and Parameters properties directly.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.