UsageWriterWriteOptionalArgumentSyntax Method

Writes the syntax for a single optional argument.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
protected virtual void WriteOptionalArgumentSyntax(
	CommandLineArgument argument
)

Parameters

argument  CommandLineArgument
The argument.

Remarks

The base implementation surrounds the result of the WriteArgumentSyntax(CommandLineArgument) method in square brackets.

This method is called by the base implementation of the WriteParserUsageSyntax method.

See Also