Class ParserOptions
- Namespace
- OneImlx.Terminal.Configuration.Options
- Assembly
- OneImlx.Terminal.dll
Represents the terminal parser options.
public sealed class ParserOptions
- Inheritance
-
ParserOptions
- Inherited Members
Properties
DisableOptionAlias
Indicates whether option aliasing is disabled. Defaults to false
.
public bool DisableOptionAlias { get; set; }
Property Value
Remarks
When option aliasing is disabled, the parser will resolve options using only the OptionPrefix. When option aliasing is enabled, the parser will recognize and resolve options using:
- Short NameShort option or alias prefixed by
one
OptionPrefix (e.g.,-a
). - Long NameLong option prefixed by
two
OptionPrefix (e.g.,--all
). - Hybrid NameHybrid option with both short and long option naming (e.g.,
--long-name
).
OptionPrefix
Specifies the prefix used for options. Defaults to -
.
public char OptionPrefix { get; set; }
Property Value
Remarks
The OptionPrefix is required and cannot be null
or consist only of whitespace.
OptionValueSeparator
Gets or sets the option value separator. Defaults to .
public char OptionValueSeparator { get; set; }
Property Value
Remarks
The option value separator must be a single Unicode character, and it can be a single whitespace.
RuntimeSeparator
Gets or sets the temporary runtime separator that is used to optimize the parsing algorithm. Defaults to
0x1F
or Unit Separator.
public char RuntimeSeparator { get; set; }
Property Value
Separator
Gets or sets the command string separator. Defaults to a single whitespace.
public char Separator { get; set; }
Property Value
Remarks
The command string separator must be a single Unicode character, and it can be a whitespace character.
ValueDelimiter
Gets or sets the value delimiter used to extract a value within the configured delimiter. Defaults to "
.
public char ValueDelimiter { get; set; }