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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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