DescriptionListSortMode Enumeration

Indicates how the arguments in the description list should be sorted when generating usage help.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public enum DescriptionListSortMode

Members

UsageOrder0 The descriptions are listed in the same order as the usage syntax: first the positional arguments, then the non-positional required named arguments sorted by name, then the remaining arguments sorted by name.
Alphabetical1 The descriptions are listed in alphabetical order by argument name. If the parsing mode is ParsingModeLongShort, this uses the long name of the argument, unless the argument has no long name, in which case the short name is used.
AlphabeticalDescending2 The same as Alphabetical, but in reverse order.
AlphabeticalShortName3 The descriptions are listed in alphabetical order by the short argument name. If the argument has no short name, the long name is used. If the parsing mode is not ParsingModeLongShort, this has the same effect as Alphabetical.
AlphabeticalShortNameDescending4 The same as AlphabeticalShortName, but in reverse order.

See Also