Sign in Join
FPDoc Onlineexperiment

TCustomApplication.GetOptionValues function

Member of TCustomApplicationpublicIn unit CustApp

Get the values for an option that may be specified multiple times.

Declaration

pascal
function GetOptionValues(const C: char; const S: string): TStringArray

Arguments

C

Short form of the command-line switch.

S

Long form of the command-line switch.

Function result

All values specified using C or S switched.

Description

GetOptionValues returns all values specified by command-line option switches C or S. For each occurrence of the command-line option C or S, the associated value is added to the array.

GetOptionValue will only return the first occurrence of a value.

Errors

None.

See also

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