CommandLineArgumentPosition Property

Gets the position of this argument.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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