ReplOptionAttribute
Configures named option metadata for a handler parameter.
- Kind:
Class - Namespace: Repl.Parameters
- Assembly:
Repl.Core - Source: src/Repl.Core/Parameters/Attributes/ReplOptionAttribute.cs
Signature
Section titled “Signature”[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]public sealed class ReplOptionAttribute : AttributeInheritance
Section titled “Inheritance”Properties
Section titled “Properties”Aliases
Section titled “Aliases”Additional option aliases as full tokens (for example: --mode, -m).
public string[] Aliases { get; set; }Returns
Section titled “Returns”Optional arity override.
public ReplArity? Arity { get; set; }Returns
Section titled “Returns”ReplArity?
CaseSensitivity
Section titled “CaseSensitivity”Optional case-sensitivity override for this option.
public ReplCaseSensitivity? CaseSensitivity { get; set; }Returns
Section titled “Returns”ReplCaseSensitivity?
Binding mode for the parameter.
public ReplParameterMode Mode { get; set; }Returns
Section titled “Returns”Canonical option name without prefix.
public string? Name { get; set; }Returns
Section titled “Returns”ReverseAliases
Section titled “ReverseAliases”Reverse aliases as full tokens (for example: --no-verbose).
public string[] ReverseAliases { get; set; }