UnknownArgumentEventArgsName Property

Gets the name of the unknown argument.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public ReadOnlyMemory<char> Name { get; }

Property Value

ReadOnlyMemoryChar
The argument name, or an empty span if this was an unknown positional argument value.

Remarks

If the unknown argument was part of a combined short switch argument when using ParsingModeLongShort, the Token property will contain all the switch names, while the Name property only contains the name of the unknown switch. For example, the token could be "-xyz" while the name is "y".

See Also