FindCmdLineSwitch function
Check whether a certain switch is present on the command-line.
Declaration
function FindCmdLineSwitch(const Switch: string;
const Chars: TSysCharSet; IgnoreCase: Boolean)
: BooleanDescription
FindCmdLineSwitch will check all command-line arguments for the
presence of the option
Switch. It will return
True if
it was found,
False otherwise. Characters that appear in
Chars (default is
SwitchChars) are assumed to
indicate an option (switch). If the parameter
IgnoreCase is
True, case will be ignored when looking for the switch. Default
is to search case sensitive.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
