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#

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

VB

Public Shared Function NewSwitch ( 
	shortName As String,
	longName As String,
	required As Boolean,
	helpText As String,
	metaValue As String,
	Optional hidden As Boolean = false
) As OptionSpecification

C++

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

F#

static member NewSwitch : 
        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