ParseOptionsArgumentNamePrefixes 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: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public IEnumerable<string>? ArgumentNamePrefixes { get; set; }

Property Value

IEnumerableString
The named argument switches, or to use the values from the ParseOptionsAttribute attribute, or if not set, the default prefixes for the current platform as returned by the CommandLineParserGetDefaultArgumentNamePrefixes method. The default value is .

Remarks

If the parsing mode is set to ParsingModeLongShort, either using the Mode property or the ParseOptionsAttributeArgumentNamePrefixes property, this property sets the short argument name prefixes. Use the LongArgumentNamePrefix property to set the argument prefix for long names.

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

See Also