Skip to content
ConsoleMonster
Class

HelpSyntax

ConsoleMonster.Help

Namespace
ConsoleMonster.Help
Assembly
ConsoleMonster
Modifiers
sealed

One parameter set's syntax: the command name and its parameters in order.

Inheritance

  • object
  • HelpSyntax

Usage

Explore 21 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 12

Constructors

public HelpSyntax(string command) #

Creates a syntax line.

Parameters

command string required
The command name.

Properties

public string Command { get; } #

The command name.

public string? SetName { get; set; } #

The parameter set's name, or null.

public IList<HelpSyntaxParameter> Parameters { get; } #

The parameters.

public bool CommonParameters { get; set; } #

Whether the common parameters follow.

Extension Methods

public static HelpSyntax CommonParameters(HelpSyntax helpSyntax, bool value = true) #

Sets HelpSyntax.CommonParameters: Whether the common parameters follow.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HelpSyntax The same instance.

Examples

// C# initializer or property           // C# fluent
helpSyntax.CommonParameters = value;    helpSyntax.CommonParameters(value);
public static HelpSyntax Parameter(HelpSyntax helpSyntax, HelpSyntaxParameter item) #

Adds an item to HelpSyntax.Parameters: The parameters.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax required
The instance.
item ConsoleMonster.Help.HelpSyntaxParameter required
The item.

Returns

HelpSyntax The same instance.
public static HelpSyntax Parameters(HelpSyntax helpSyntax, IEnumerable<HelpSyntaxParameter> items) #

Adds items to HelpSyntax.Parameters: The parameters.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpSyntaxParameter> required
The items, in order.

Returns

HelpSyntax The same instance.
public static HelpSyntax SetName(HelpSyntax helpSyntax, string? value) #

Sets HelpSyntax.SetName: The parameter set's name, or null.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax required
The instance.
value string? required
The value.

Returns

HelpSyntax The same instance.

Examples

// C# initializer or property    // C# fluent
helpSyntax.SetName = value;      helpSyntax.SetName(value);