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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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