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: 3.0.0
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, None. The default value is .

Remarks

If an argument doesn't have the ArgumentName property set (or doesn't have an ArgumentNameAttribute attribute for constructor parameters), the argument name is determined by taking the name of the property, constructor parameter, or method that defines it, and applying the specified transform.

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 ArgumentNameTransform property.

See Also