CommandLineArgumentAttribute Constructor

Initializes a new instance of the CommandLineArgumentAttribute class using the specified argument name.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public CommandLineArgumentAttribute(
	string? argumentName = null
)

Parameters

argumentName  String  (Optional)
The name of the argument, or null to indicate the member name should be used, applying the NameTransform specified by the ParseOptions.ArgumentNameTransform property or the ParseOptionsAttribute.ArgumentNameTransform property.

Remarks

The NameTransform will not be applied to explicitly specified names.

See Also