HelpParameter
ConsoleMonster.Help
A parameter's details for the parameter table.
Inheritance
- object
- HelpParameter
Usage
Explore 53 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.
Returned or exposed by 25
- Extension method HelpParameter.Aliase
- Extension method HelpParameter.Aliases
- Extension method HelpParameter.Default
- Extension method HelpParameter.Description
- Extension method HelpParameter.Group
- Extension method HelpParameter.Named
- Extension method HelpParameter.Pipeline
- Extension method HelpParameter.Position
- Extension method HelpParameter.Required
- Extension method HelpParameter.Syntax
- Extension method HelpParameter.Type
- Extension method HelpParameter.ValueOptional
- Method HelpParameterFluent.Aliase
- Method HelpParameterFluent.Aliases
- Method HelpParameterFluent.Default
- Method HelpParameterFluent.Description
- Method HelpParameterFluent.Group
- Method HelpParameterFluent.Named
- Method HelpParameterFluent.Pipeline
- Method HelpParameterFluent.Position
- Method HelpParameterFluent.Required
- Method HelpParameterFluent.Syntax
- Method HelpParameterFluent.Type
- Method HelpParameterFluent.ValueOptional
- Property HelpTopic.Parameters
Accepted by parameters 28
- Extension method HelpParameter.Aliase
- Extension method HelpParameter.Aliases
- Extension method HelpParameter.Default
- Extension method HelpParameter.Description
- Extension method HelpParameter.Group
- Extension method HelpParameter.Named
- Extension method HelpParameter.Pipeline
- Extension method HelpParameter.Position
- Extension method HelpParameter.Required
- Extension method HelpParameter.Syntax
- Extension method HelpParameter.Type
- Extension method HelpParameter.ValueOptional
- Method HelpParameterFluent.Aliase
- Method HelpParameterFluent.Aliases
- Method HelpParameterFluent.Default
- Method HelpParameterFluent.Description
- Method HelpParameterFluent.Group
- Method HelpParameterFluent.Named
- Method HelpParameterFluent.Pipeline
- Method HelpParameterFluent.Position
- Method HelpParameterFluent.Required
- Method HelpParameterFluent.Syntax
- Method HelpParameterFluent.Type
- Method HelpParameterFluent.ValueOptional
- Extension method HelpTopic.Parameter
- Extension method HelpTopic.Parameters
- Method HelpTopicFluent.Parameter
- Method HelpTopicFluent.Parameters
Constructors
public HelpParameter(string name) #Creates a parameter.
Parameters
- name string
- The supplied name. With Named enabled the renderer adds one dash; use -output to display --output.
Inherited Methods
Properties
public string Name { get; } #The supplied name. With Named enabled the renderer adds one dash; use -output to display --output.
public bool Named { get; set; } #Whether the renderer adds one dash (default true). Supply -output for --output; false keeps a command-line positional argument unprefixed.
public string? Position { get; set; } #The position (0, 1, ...), or null when it is named only.
public string? Pipeline { get; set; } #How it takes pipeline input (for example ByValue, ByPropertyName), or null for none.
public string? Group { get; set; } #The heading command-line help lists the option under (for example Output), or null for the main list.
public bool ValueOptional { get; set; } #Whether the value may be left out (--report [path] instead of --report <path>).
public string? Syntax { get; set; } #The literal syntax command-line help shows instead of the names and type (for example --filter <rule>[,<rule>...]), or null to build it.
Extension Methods
public static HelpParameter Aliase(HelpParameter helpParameter, string item) #Adds an item to HelpParameter.Aliases: The aliases, or empty.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- item string
- The item.
public static HelpParameter Aliases(HelpParameter helpParameter, IEnumerable<string> items) #Adds items to HelpParameter.Aliases: The aliases, or empty.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpParameter Default(HelpParameter helpParameter, string? value) #Sets HelpParameter.Default: The default value, or null.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpParameter.Default = value; helpParameter.Default(value);public static HelpParameter Description(HelpParameter helpParameter, string? value) #Sets HelpParameter.Description: The description, or null.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpParameter.Description = value; helpParameter.Description(value);public static HelpParameter Group(HelpParameter helpParameter, string? value) #Sets HelpParameter.Group: The heading command-line help lists the option under (for example Output), or null for the main list.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpParameter.Group = value; helpParameter.Group(value);public static HelpParameter Named(HelpParameter helpParameter, bool value = true) #Sets HelpParameter.Named: Whether the renderer adds one dash (default true). Supply -output for --output; false keeps a command-line positional argument unprefixed.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpParameter.Named = value; helpParameter.Named(value);public static HelpParameter Pipeline(HelpParameter helpParameter, string? value) #Sets HelpParameter.Pipeline: How it takes pipeline input (for example ByValue, ByPropertyName), or null for none.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpParameter.Pipeline = value; helpParameter.Pipeline(value);public static HelpParameter Position(HelpParameter helpParameter, string? value) #Sets HelpParameter.Position: The position (0, 1, ...), or null when it is named only.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpParameter.Position = value; helpParameter.Position(value);public static HelpParameter Required(HelpParameter helpParameter, bool value = true) #Sets HelpParameter.Required: Whether it is required (in any parameter set).
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpParameter.Required = value; helpParameter.Required(value);public static HelpParameter Syntax(HelpParameter helpParameter, string? value) #Sets HelpParameter.Syntax: The literal syntax command-line help shows instead of the names and type (for example --filter <rule>[,<rule>...]), or null to build it.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpParameter.Syntax = value; helpParameter.Syntax(value);public static HelpParameter Type(HelpParameter helpParameter, string? value) #Sets HelpParameter.Type: The type, or null.
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpParameter.Type = value; helpParameter.Type(value);public static HelpParameter ValueOptional(HelpParameter helpParameter, bool value = true) #Sets HelpParameter.ValueOptional: Whether the value may be left out (--report [path] instead of --report <path>).
Parameters
- helpParameter ConsoleMonster.Help.HelpParameter
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpParameter.ValueOptional = value; helpParameter.ValueOptional(value);