CommandOptionsStripCommandNameSuffix Property

Gets or sets a value that will be removed from the end of a command name during name transformation.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public string? StripCommandNameSuffix { get; set; }

Property Value

String
The suffix to remove, or to not remove any suffix. The default value is "Command".

Remarks

This property is only used if the CommandNameTransform property is not NameTransformNone, and is never used for commands with an explicit name.

For example, if you have a subcommand class named CreateFileCommand and you use NameTransformDashCase and the default value of "Command" for this property, the name of the command will be "create-file" without having to explicitly specify it.

The value of this property is case sensitive.

See Also