Class ArgumentsParserOptions
Options for default argument parser.
Namespace: TehGM.Wolfringo.Commands.Parsing
Assembly: Wolfringo.Commands.dll
Syntax
public class ArgumentsParserOptions
Properties
| Improve this Doc View SourceBaseMarker
Base marker to use by default.
Declaration
public char BaseMarker { get; set; }
Property Value
Type | Description |
---|---|
Char |
Remarks
Base marker is used by default, and will be skipped inside of a nested block.
Base marker must be contained as a key in BlockMarkers.
Defaults to space.
BlockMarkers
Argument start and end markers.
Declaration
public IDictionary<char, char> BlockMarkers { get; }
Property Value
Type | Description |
---|---|
IDictionary<Char, Char> |
Remarks
By default, following markers are used to split arguments:
Start: ' ', End: ' '
Start: '"', End: '"'
Start: '(', End: ')'
Start: '[', End: ']'
InitialBlockSizeAllocation
Initial size allocated for an argument.
Declaration
public int InitialBlockSizeAllocation { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
ArgumentsParser uses a new list of Char for each argument, and allocates initial size. A good initial size is big enough to contain most commonly used arguments, but small enough to not allocate too much memory unnecessarily.
Defaults to 8.