CommandLineArgumentPosition Property

Gets the position of this argument.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public int? Position { get; }

Property Value

NullableInt32
The position of this argument, or if this is not a positional argument.

Remarks

A positional argument is created by using the CommandLineArgumentAttributePosition or CommandLineArgumentAttributeIsPositional property.

The Position property reflects the actual position of the positional argument. This doesn't need to match the original value of the CommandLineArgumentAttributePosition property.

See Also