UsageWriterCommandName Property

Gets or sets the name of the subcommand.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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