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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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 Mode property or the ParseOptionsAttributeMode is ParsingModeLongShort, or if the PrefixTermination or ParseOptionsAttributePrefixTermination property is not PrefixTerminationModeNone.

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

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

See Also