Skip to content
ConsoleMonster
Class

HelpSyntaxParameterFluent

ConsoleMonster.Help

Namespace
ConsoleMonster.Help
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of HelpSyntaxParameter, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • HelpSyntaxParameterFluent

Methods

public static HelpSyntaxParameter Named(HelpSyntaxParameter helpSyntaxParameter, bool value = true) #

Sets HelpSyntaxParameter.Named: Whether the syntax includes a name with one renderer-added dash (default true). Supply -output for --output. False renders only the positional value placeholder.

Parameters

helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HelpSyntaxParameter The same instance.

Examples

// C# initializer or property         // C# fluent
helpSyntaxParameter.Named = value;    helpSyntaxParameter.Named(value);
public static HelpSyntaxParameter Positional(HelpSyntaxParameter helpSyntaxParameter, bool value = true) #

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

Parameters

helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HelpSyntaxParameter The same instance.

Examples

// C# initializer or property              // C# fluent
helpSyntaxParameter.Positional = value;    helpSyntaxParameter.Positional(value);
public static HelpSyntaxParameter Required(HelpSyntaxParameter helpSyntaxParameter, bool value = true) #

Sets HelpSyntaxParameter.Required: Whether it is required.

Parameters

helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HelpSyntaxParameter The same instance.

Examples

// C# initializer or property            // C# fluent
helpSyntaxParameter.Required = value;    helpSyntaxParameter.Required(value);
public static HelpSyntaxParameter Type(HelpSyntaxParameter helpSyntaxParameter, string? value) #

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

Parameters

helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter required
The instance.
value string? required
The value.

Returns

HelpSyntaxParameter The same instance.

Examples

// C# initializer or property        // C# fluent
helpSyntaxParameter.Type = value;    helpSyntaxParameter.Type(value);