ParseOptions.LongArgumentNamePrefix 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: 3.1.1
C#
public string? LongArgumentNamePrefix { get; set; }

Property Value

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

Remarks

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

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

If not null, this property overrides the value of the LongArgumentNamePrefix property.

See Also