ReplParameterMode
Controls whether a handler parameter accepts named options, positional arguments, or both.
- Kind:
Enum - Namespace: Repl.Parameters
- Assembly:
Repl.Core - Source: src/Repl.Core/Parameters/ReplParameterMode.cs
Signature
Section titled “Signature”public enum ReplParameterModeFields
Section titled “Fields”ArgumentOnly
Section titled “ArgumentOnly”Parameter can bind only from positional arguments.
ArgumentOnly = 2Returns
Section titled “Returns”OptionAndPositional
Section titled “OptionAndPositional”Parameter can bind from named option first, then positional fallback.
OptionAndPositional = 0Returns
Section titled “Returns”OptionOnly
Section titled “OptionOnly”Parameter can bind only from named options.
OptionOnly = 1