Skip to content

M_CommandLine_Core_OptionSpecification_NewSwitch

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

OptionSpecification.NewSwitch Method

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

Syntax

C#

publicstaticOptionSpecificationNewSwitch(stringshortName,stringlongName,boolrequired,stringhelpText,stringmetaValue,boolhidden=false)

VB

PublicSharedFunctionNewSwitch(shortNameAsString,longNameAsString,requiredAsBoolean,helpTextAsString,metaValueAsString,OptionalhiddenAsBoolean=false)AsOptionSpecification

C++

public:static OptionSpecification^ NewSwitch( String^ shortName, String^ longName, bool required, String^ helpText, String^ metaValue, bool hidden = false )

F#

static memberNewSwitch:shortName :string * longName : string * required : bool * helpText : string * metaValue : string * ?hidden : bool (* Defaults: let _hidden = defaultArg hidden false*)-> OptionSpecification 

Parameters

shortName
Type: System.String
longName
Type: System.String
required
Type: System.Boolean
helpText
Type: System.String
metaValue
Type: System.String
hidden (Optional)
Type: System.Boolean

Return Value

Type: OptionSpecification

See Also

Reference

OptionSpecification Class
CommandLine.Core Namespace

Clone this wiki locally