This is the work that will close #6. Right now the new Diagnostic struct only contains a Names struct that will either contain the param.names in cases where there was an error parsing a specific parameter, or the name of an argument in case the argument doesn't match any parameter. I'll need to also create a function on Diagnostic called report that will be the default way of reporting a parsing error to a stream.
This is the work that will close #6. Right now the new
Diagnostic
struct only contains aNames
struct that will either contain theparam.names
in cases where there was an error parsing a specific parameter, or the name of an argument in case the argument doesn't match any parameter. I'll need to also create a function onDiagnostic
calledreport
that will be the default way of reporting a parsing error to a stream.