ParseOptionsAttributeCaseSensitive Property

Gets or sets a value that indicates whether argument names are treated as case sensitive.

Definition

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

Property Value

Boolean
to indicate that argument names must match case exactly when specified, or to indicate the case does not need to match. The default value is

Remarks

When , the CommandLineParser will use StringComparisonOrdinal for command line argument comparisons; otherwise, it will use StringComparisonInvariantCulture. Ordinal comparisons are not used for case-sensitive names so that lower and upper case arguments sort together in the usage help.

To use a different StringComparison value than the two mentioned here, use the ParseOptionsArgumentNameComparison property.

This value can be overridden by the ParseOptionsArgumentNameComparison property.

See Also