Interface IOption
Unit
Declaration
type IOption = interface(IInterface)
Description
Interface representing an option that can be set as expected for a command.
Attributes
- GUID['{C24CC7B9-946E-44AA-BF92-CE89592F0940}']
Hierarchy
- IInterface
- IOption
Overview
Methods
function GetFlag: string; |
|
procedure SetFlag(const AValue: string); |
|
function GetName: string; |
|
procedure SetName(const AValue: string); |
|
function GetDescription: string; |
|
procedure SetDescription(const AValue: string); |
|
procedure SetNotAllowedFlags(const Value: TArray<string>); |
|
function GetNotAllowedFlags: TArray<string>; |
|
function GetConstraint: TOptionConstraint; |
|
procedure SetConstraint(const AValue: TOptionConstraint); |
|
function GetValue: string; |
|
procedure SetValue(const AValue: string); |
Properties
property Flag: string read GetFlag write SetFlag; |
|
property Name: string read GetName write SetName; |
|
property Description: string read GetDescription write SetDescription; |
|
property NotAllowedFlags: TArray<string> read GetNotAllowedFlags write SetNotAllowedFlags; |
|
property Constraint: TOptionConstraint read GetConstraint write SetConstraint; |
|
property Value: string read GetValue write SetValue; |
Description
Methods
function GetFlag: string; |
|
procedure SetFlag(const AValue: string); |
|
function GetName: string; |
|
procedure SetName(const AValue: string); |
|
function GetDescription: string; |
|
procedure SetDescription(const AValue: string); |
|
procedure SetNotAllowedFlags(const Value: TArray<string>); |
|
function GetNotAllowedFlags: TArray<string>; |
|
function GetConstraint: TOptionConstraint; |
|
procedure SetConstraint(const AValue: TOptionConstraint); |
|
function GetValue: string; |
|
returns the value of the option provided via parameter, this value should assigned after parse |
procedure SetValue(const AValue: string); |
|
Properties
property Flag: string read GetFlag write SetFlag; |
|
Represents the option as a single letter, i.e. a short option |
property Name: string read GetName write SetName; |
|
Represents the option as a word, that is, a long option, it does not accept spaces, but "-' can be used for compound names. |
property Description: string read GetDescription write SetDescription; |
|
Description of the option that best defines your objective. It can be displayed to the user when the user requests information through the help command for example. |
property NotAllowedFlags: TArray<string> read GetNotAllowedFlags write SetNotAllowedFlags; |
|
Array of flags not supported for use in conjunction with this option. Only the short option without the "-" is accepted. |
property Constraint: TOptionConstraint read GetConstraint write SetConstraint; |
|
Option constrains that will be validated against the options provided by the user in order to guarantee that the command is being used correctly. |
property Value: string read GetValue write SetValue; |
|
Returns the value of an option after parsing the parameters informed via the command line. The value of an option shoud be passed on right side of an equal sign after the option name or flag. |
Generated by PasDoc 0.16.0.