Closed danielmarbach closed 3 months ago
Thanks! FYI, the reason there aren't more improvements to argument parsing is that I was hoping to swap this code out for an AOT-compatible argument parser, but my progress on Spectre.Console.Cli is very slow. So it makes sense to spend a little time cleaning this up.
When doing
the following exception is raised
The code tries to access
options.SdkVersion.Major
whileSdkVersion
is null.With this change you get
error: Parameter <version> requires a value
There might be a few edge cases I haven't been able to cover given the limited amount of time I had available to fix this. Sorry for that.