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#

publicHelpTextAddOptions<T>(intmaximumLength,ParserResult<T>result)

VB

PublicFunctionAddOptions(OfT)(maximumLengthAsInteger,resultAsParserResult(OfT))AsHelpText

C++

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

F#

memberAddOptions: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

ExceptionCondition
ArgumentNullExceptionThrown when parameter result is null.

See Also

Reference

HelpText Class
AddOptions Overload
CommandLine.Text Namespace

Clone this wiki locally