[Overview][Types][Classes][Variables][Index] |
Get all non-switch options
Source position: custapp.pp line 81
public function TCustomApplication.GetNonOptions( |
const ShortOptions: string; |
const Longopts: array of string |
):TStringArray; |
const ShortOptions: string; |
const Longopts: array of string; |
NonOptions: TStrings |
); |
ShortOptions |
|
List of short options |
Longopts |
|
List of long options |
The list of non-options
ShortOptions |
|
List of short options |
Longopts |
|
List of long options |
NonOptions |
|
Non options in the form of a string list |
GetNonOptions returns the items on the command-line that are not associated with a switch. It checks the command-line for allowed switches as they are indicated by ShortOptions and Longopts. The format is identical to TCustomApplication.Checkoptions. This is useful for an application which accepts a command form such as svn:
svn commit [options] files
In the above example, "commit" and "files" would be returned by GetNonOptions
The non-options are returned in the form of a string array, or a stringlist instance can be passed in NonOptions. Either will be filled with the non-options on return.
None.
|
Check whether an option was specified. |
|
|
Check whether all given options on the command-line are valid. |
|
|
Return the value of a command-line option. |
|
|
Get the values for an option that may be specified multiple times |