ParseOptionsLongArgumentNamePrefix Property

Gets or sets the argument name prefix to use for long argument names.

Definition

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

Property Value

String
The long argument prefix, or to use the value from the ParseOptionsAttribute attribute, or if not set, the default prefix from the CommandLineParserDefaultLongArgumentNamePrefix constant. The default value is .

Remarks

This property is only used if the if the parsing mode is set to ParsingModeLongShort, either using the Mode property or the ParseOptionsAttribute attribute

Use the ArgumentNamePrefixes to specify the prefixes for short argument names.

If not , this property overrides the value of the ParseOptionsAttributeLongArgumentNamePrefix property.

See Also