Class TOption
Unit
Declaration
type TOption = class(TInterfacedObject, IOption)
Description
Class that implements the IOption interface that represents an option that can be configured as expected for a command.
Hierarchy
- TInterfacedObject
- TOption
Overview
Methods
![]() |
class function New(const AFlag, AName, ADescription: string; ANotAllowedFlags: TArray<string>; AConstraint: TOptionConstraint = ocNoValue): IOption; |
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
![]() |
class function New(const AFlag, AName, ADescription: string; ANotAllowedFlags: TArray<string>; AConstraint: TOptionConstraint = ocNoValue): IOption; |
Class factory recommended as first choice for class construction. Allows initialization with initial parameters.
Parameters
|
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 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. |
Generated by PasDoc 0.16.0.