CommandLineArgumentUsedArgumentName Property

Gets the name or alias that was used on the command line to specify this argument.

Definition

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

Property Value

String
The name or alias that was used on the command line to specify this argument, or if this argument was specified by position or not specified.

Remarks

This property can be the value of the ArgumentName property, the ShortName property, or any of the values in the Aliases and ShortAliases properties. Unless disabled using the ParseOptionsAutoPrefixAliases or ParseOptionsAttributeAutoPrefixAliases property, it can also be any unique prefix of an argument name or alias.

If the argument names are case-insensitive, the value of this property uses the casing as specified on the command line, not the original casing of the argument name or alias.

See Also