CommandLineArgument.Position 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

Nullable<Int32>
The position of this argument, or null if this is not a positional argument.

Remarks

A positional argument is created by using the CommandLineArgumentAttribute.Position or CommandLineArgumentAttribute.IsPositional property.

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

See Also