Skip to content
ConsoleMonster

API Reference

Class

HelpSyntaxParameter

Namespace ConsoleMonster.Help
Assembly ConsoleMonster
Modifiers sealed

A parameter as it appears in a syntax line.

Inheritance

  • Object
  • HelpSyntaxParameter

Usage

Explore 17 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 10

Constructors

public HelpSyntaxParameter(String name) #

Creates a syntax parameter.

Parameters

name System.String requiredposition: 0
The name without the dash.

Properties

public String Name { get; } #

The name without the dash.

public String? Type { get; set; } #

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

public Boolean Required { get; set; } #

Whether it is required.

public Boolean Positional { get; set; } #

Whether its name may be left out (a position is given).

Extension 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.