CommandLineArgument.ArgumentNameWithPrefix Property

Gets the name of this argument, with the appropriate argument name prefix.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public string ArgumentNameWithPrefix { get; }

Property Value

String
The name of the argument, with an argument name prefix.

Remarks

If the CommandLineParser.Mode property is ParsingMode.LongShort, this will use the long name with the long argument prefix if the argument has a long name, and the short name with the primary short argument prefix if not.

For ParsingMode.Default, the prefix used is the first prefix specified in the CommandLineParser.ArgumentNamePrefixes property.

See Also