Creates an argument parser based on a set of option definitions.
The option definitions
The validator configuration
Private
Readonly
validatorParses command-line arguments into option values.
Optional
cmdLine: CommandLineThe command line or arguments
Optional
flags: ParsingFlagsThe parsing flags
The options' values
Parses command-line arguments into option values.
The options' values to parse into
The command line or arguments
Optional
flags: ParsingFlagsThe parsing flags
The parsing result
Validates the option definitions. This should only be called during development and testing, but skipped in production.
Optional
flags: ValidationFlagsThe validation flags
The validation result
Implements parsing of command-line arguments into option values.