Skip to content
ConsoleMonster

API Reference

Class

HelpSyntaxParameterFluent

Namespace ConsoleMonster.Help
Assembly ConsoleMonster
Modifiers static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of HelpSyntaxParameter, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • Object
  • HelpSyntaxParameterFluent

Methods

public static HelpSyntaxParameter WithPositional(HelpSyntaxParameter helpSyntaxParameter, Boolean value = true) #
Returns: HelpSyntaxParameter

Sets HelpSyntaxParameter.Positional: Whether its name may be left out (a position is given).

Parameters

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

Returns

The same instance.

public static HelpSyntaxParameter WithRequired(HelpSyntaxParameter helpSyntaxParameter, Boolean value = true) #
Returns: HelpSyntaxParameter

Sets HelpSyntaxParameter.Required: Whether it is required.

Parameters

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

Returns

The same instance.

public static HelpSyntaxParameter WithType(HelpSyntaxParameter helpSyntaxParameter, String? value) #
Returns: HelpSyntaxParameter

Sets HelpSyntaxParameter.Type: The value type (for example string[]), or null for a switch.

Parameters

helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.