command-line-api
command-line-api copied to clipboard
Tracking issue for Error changes
For parsing
- [ ] Approve Error proposal
- [ ] Change
ParseErrorname toCliError - [ ] Create
CliErrorandCliDiagnosticDescriptor - [ ] Replace all error creation with 'CliError'
- [ ] Comment out code for argument required, option and command (*)
- [ ] Comment out
ArgumentArity.Validateand its call inArgumentResultandCommandResultafter checking the proposal's explanation of maximum arity and token limit reached (**) - [ ] Change
SymbolTree.AddErrorto take aCliErrorand associated fixes - [ ] Collect
SymbolTreeerrors intoParseResult.Errors - [ ] Update existing tests to use
CliError - [ ] Add any additional tests deemed necessary
(*) This is a validation check that does not need to affect further parsing. In its current form, it also blocks making ParseResult sparse.
(**) See Arity section of Error proposal
For ErrorReporting subsystem
TBD