ParseOptionsAttribute.CaseSensitive 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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public bool CaseSensitive { get; set; }

Property Value

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

Remarks

When true, the CommandLineParser will use StringComparison.Ordinal for command line argument comparisons; otherwise, it will use StringComparison.InvariantCulture. 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 ParseOptions.ArgumentNameComparison property.

This value can be overridden by the ParseOptions.ArgumentNameComparison property.

See Also