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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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