MergeCmdLineParams function
Generates a string with the specified list of parameters.
Declaration
function MergeCmdLineParams(ParamList: TStrings; MaxLen: Integer=0)
: stringDescription
MergeCmdLineParams is a
String function used to convert
parameter values in the ParamList argument to a normalized string using the
quoting needed for the parameter values.
MergeCmdLineParams iterates over the string values in ParamList, and calls StrToCmdLineParam to normalize the whitespace and quoting in each value. The sanitized parameters values are concatenated together, using the Space (' ') as the delimiter between the parameter values, and used as the return value for the function.
No actions are performed in the routine when ParamList is unassigned (Nil) or its Count property is 0 (zero).
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
