Skip to content

ReplOptionAttribute

Configures named option metadata for a handler parameter.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public sealed class ReplOptionAttribute : Attribute

Additional option aliases as full tokens (for example: --mode, -m).

public string[] Aliases { get; set; }

string[]

Optional arity override.

public ReplArity? Arity { get; set; }

ReplArity?

Optional case-sensitivity override for this option.

public ReplCaseSensitivity? CaseSensitivity { get; set; }

ReplCaseSensitivity?

Binding mode for the parameter.

public ReplParameterMode Mode { get; set; }

ReplParameterMode

Canonical option name without prefix.

public string? Name { get; set; }

string

Reverse aliases as full tokens (for example: --no-verbose).

public string[] ReverseAliases { get; set; }

string[]