ParseOptionsArgumentNameTransform Property

Gets or sets a value that indicates how names are created for arguments that don't have an explicit name.

Definition

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

Property Value

NullableNameTransform
One of the values of the NameTransform enumeration, or to use the value from the ParseOptionsAttribute attribute, or if that attribute is not present, NameTransformNone. The default value is .

Remarks

If an argument doesn't have the CommandLineArgumentAttributeArgumentName property set, the argument name is determined by taking the name of the property or method that defines it, and applying the specified transformation.

The name transform will also be applied to the names of the automatically added help and version attributes.

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

See Also