I may be overlooking something obvious, or just have spaced on this... I want to transform the `ParseResult` for combining with additional failures that will be grouped by symbol name. I can get the `SymbolResult` from `ParseResult.Errors.First().SymbolResult` However, I do not see how to get the `Symbol` from the `SymbolResult` (which seems odd enough I am pretty sure I have overlooked something). @jonsequitur
Activity
jonsequitur commentedon Jan 13, 2026
SymbolResultis abstract. You can pattern match to the derived types like this and get their associated symbols like this:command-line-api/src/System.CommandLine/ParseResult.cs
Lines 235 to 241 in e292617
cbersch commentedon Mar 6, 2026
@jonsequitur Couldn't the
SymbolResulthave aSymbolproperty?