ParseOptions.ArgumentNamePrefixes Property

Gets or sets the argument name prefixes to use when parsing the arguments.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.1.1
C#
public IEnumerable<string>? ArgumentNamePrefixes { get; set; }

Property Value

IEnumerable<String>
The named argument switches, or null to use the values from the ParseOptionsAttribute attribute, or if not set, the default prefixes for the current platform as returned by the GetDefaultArgumentNamePrefixes() method. The default value is null.

Remarks

If the parsing mode is set to LongShort, either using the Mode property or the ParseOptionsAttribute attribute, this property sets the short argument name prefixes. Use theLongArgumentNamePrefix property to set the argument prefix for long names.

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

See Also