UsageWriterGetArgumentsInUsageOrder Method

Gets the arguments in the order they will be shown in the usage syntax.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
protected virtual IEnumerable<CommandLineArgument> GetArgumentsInUsageOrder()

Return Value

IEnumerableCommandLineArgument
A list of all arguments in usage order.

Remarks

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

The base implementation first returns positional arguments in the specified order, then required non-positional arguments in alphabetical order, then the remaining arguments in alphabetical order.

Arguments that are hidden are excluded from the list.

See Also