Skip to content
ConsoleMonster

API Reference

Class

HelpSyntax

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 System.String requiredposition: 0
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 Boolean CommonParameters { get; set; } #

Whether the common parameters follow.

Extension Methods

public static HelpSyntax AddParameter(HelpSyntax helpSyntax, HelpSyntaxParameter item) #
Returns: HelpSyntax

Adds an item to HelpSyntax.Parameters: The parameters.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax requiredposition: 0
The instance.
item ConsoleMonster.Help.HelpSyntaxParameter requiredposition: 1
The item.

Returns

The same instance.

AddParameters 2 overloads
public static HelpSyntax AddParameters(HelpSyntax helpSyntax, params HelpSyntaxParameter[] items) #
Returns: HelpSyntax

Adds items to HelpSyntax.Parameters: The parameters.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax requiredposition: 0
The instance.
items ConsoleMonster.Help.HelpSyntaxParameter[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpSyntax AddParameters(HelpSyntax helpSyntax, IEnumerable<HelpSyntaxParameter> items) #
Returns: HelpSyntax

Adds items to HelpSyntax.Parameters: The parameters.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpSyntaxParameter> requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpSyntax WithCommonParameters(HelpSyntax helpSyntax, Boolean value = true) #
Returns: HelpSyntax

Sets HelpSyntax.CommonParameters: Whether the common parameters follow.

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.

public static HelpSyntax WithSetName(HelpSyntax helpSyntax, String? value) #
Returns: HelpSyntax

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

Parameters

helpSyntax ConsoleMonster.Help.HelpSyntax requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.