CommandOptionsCommandNameTransform Property

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

Definition

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

Property Value

NameTransform
One of the values of the NameTransform enumeration. The default value is NameTransformNone.

Remarks

If a command hasn't set an explicit name using the CommandAttribute attribute, the name is derived from the type name of the command, applying the specified transformation.

If this property is not NameTransformNone, the value specified by the StripCommandNameSuffix property will be removed from the end of the type name before applying the transformation.

This transformation is also used for the name of the automatic version command if the AutoVersionCommand property is .

This transformation is not used for commands that have an explicit name.

See Also