Check whether an option was specified.
Source position: custapp.pp line 83
public function TCustomApplication.HasOption( |
const S: string |
):Boolean; |
const C: char; |
const S: string |
):Boolean; |
S |
|
Long option string. |
True if the option S or C was specified on the command-line.
C |
|
Short option character. |
S |
|
Long option string. |
HasOption returns True if the specified option was given on the command line. Either the short option character C or the long option S may be used. Note that both options (requiring a value) and switches can be specified.
Depending on the value of the CaseSensitiveOptions property, the search is performed case sensitive or case insensitive.
Options are identified as command-line parameters which start with OptionChar (by default the dash ('-') character).
|
Return the index of an option. |
|
|
Return the value of a command-line option. |
|
|
Check whether all given options on the command-line are valid. |
|
|
Are options interpreted case sensitive or not. |
|
|
Command-line switch character. |