Skip to content

M_CommandLine_Core_OptionSpecification__ctor

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

OptionSpecification Constructor

Initializes a new instance of the OptionSpecification class

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public OptionSpecification(
	string shortName,
	string longName,
	bool required,
	string setName,
	Maybe<int> min,
	Maybe<int> max,
	char separator,
	Maybe<Object> defaultValue,
	string helpText,
	string metaValue,
	IEnumerable<string> enumValues,
	Type conversionType,
	TargetType targetType,
	bool hidden = false
)

VB

Public Sub New ( 
	shortName As String,
	longName As String,
	required As Boolean,
	setName As String,
	min As Maybe(Of Integer),
	max As Maybe(Of Integer),
	separator As Char,
	defaultValue As Maybe(Of Object),
	helpText As String,
	metaValue As String,
	enumValues As IEnumerable(Of String),
	conversionType As Type,
	targetType As TargetType,
	Optional hidden As Boolean = false
)

C++

public:
OptionSpecification(
	String^ shortName, 
	String^ longName, 
	bool required, 
	String^ setName, 
	Maybe<int>^ min, 
	Maybe<int>^ max, 
	wchar_t separator, 
	Maybe<Object^>^ defaultValue, 
	String^ helpText, 
	String^ metaValue, 
	IEnumerable<String^>^ enumValues, 
	Type^ conversionType, 
	TargetType targetType, 
	bool hidden = false
)

F#

new : 
        shortName : string * 
        longName : string * 
        required : bool * 
        setName : string * 
        min : Maybe<int> * 
        max : Maybe<int> * 
        separator : char * 
        defaultValue : Maybe<Object> * 
        helpText : string * 
        metaValue : string * 
        enumValues : IEnumerable<string> * 
        conversionType : Type * 
        targetType : TargetType * 
        ?hidden : bool 
(* Defaults:
        let _hidden = defaultArg hidden false
*)
-> OptionSpecification

Parameters

 

shortName
Type: System.String
longName
Type: System.String
required
Type: System.Boolean
setName
Type: System.String
min
Type: CSharpx.Maybe(Int32)
max
Type: CSharpx.Maybe(Int32)
separator
Type: System.Char
defaultValue
Type: CSharpx.Maybe(Object)
helpText
Type: System.String
metaValue
Type: System.String
enumValues
Type: System.Collections.Generic.IEnumerable(String)
conversionType
Type: System.Type
targetType
Type: CommandLine.Core.TargetType
hidden (Optional)
Type: System.Boolean

See Also

Reference

OptionSpecification Class
CommandLine.Core Namespace

Clone this wiki locally