[Overview][Types][Classes][Variables][Index] |
Return the value of a command-line option.
Source position: line 0
public function TCustomApplication.GetOptionValue( |
const S: String |
):String; |
const C: Char; |
const S: String |
):String; |
S |
|
Long option string |
Option value, or empty string.
C |
|
Short option character |
S |
|
Long option string |
Option value, or empty string.
GetOptionValue returns the value of an option. Values are specified in the usual GNU option format, either of
--longopt=Value
or
-c Value
is supported.
The function returns the specified value, or the empty string if none was 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. |
|
|
Check whether an option was specified. |
|
|
Check whether all given options on the command-line are valid. |
|
|
Are options interpreted case sensitive or not |
|
|
Command-line switch character |
lazarus-ccr.sourceforge.net |