Skip to content

M_CommandLine_Text_HelpText_AddOptions__1_1

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

HelpText.AddOptions(T) Method (Int32, ParserResult(T))

Adds a text block with options usage string.

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

Syntax

C#

public HelpText AddOptions<T>(
	int maximumLength,
	ParserResult<T> result
)

VB

Public Function AddOptions(Of T) ( 
	maximumLength As Integer,
	result As ParserResult(Of T)
) As HelpText

C++

public:
generic<typename T>
HelpText^ AddOptions(
	int maximumLength, 
	ParserResult<T>^ result
)

F#

member AddOptions : 
        maximumLength : int * 
        result : ParserResult<'T> -> HelpText 

Parameters

 

maximumLength
Type: System.Int32
The maximum length of the help screen.
result
Type: CommandLine.ParserResult(T)
A parsing computation result.

Type Parameters

 

T

Return Value

Type: HelpText

Exceptions

 

Exception Condition
ArgumentNullException Thrown when parameter result is null.

See Also

Reference

HelpText Class
AddOptions Overload
CommandLine.Text Namespace

Clone this wiki locally