help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

FindCmdLineSwitch

Check whether a certain switch is present on the command-line.

Declaration

Source position: line 0

function FindCmdLineSwitch(

  const Switch: String;

  const Chars: TSysCharSet;

  IgnoreCase: Boolean

):Boolean;

function FindCmdLineSwitch(

  const Switch: String;

  IgnoreCase: Boolean

):Boolean;

function FindCmdLineSwitch(

  const Switch: String

):Boolean;

Description

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

SwitchChars

  

Characters which start a command-line switch

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505