UsageWriterCommandName Property

Gets or sets the name of the subcommand.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public string? CommandName { get; set; }

Property Value

String
The name of the subcommand, or if the current parser is not for a subcommand.

Remarks

This property is set by the CommandManager class before writing usage help for a subcommand.

When nested subcommands are used with the ParentCommand class, this may be several subcommand names separated by spaces.

See Also