Currently, it's possible to cause type mismatch as Argument<T> and Option<T> expose a possibility to specify default value/factory as object. There is no guarantee that returned object is of type T.
Option<bool> runApiCompatOption = new("--run-api-compat", "....");
runApiCompatOption.SetDefaultValue(123); // providing int for a bool
follow up to #1891 (comment)
Currently, it's possible to cause type mismatch as
Argument<T>andOption<T>expose a possibility to specify default value/factory asobject. There is no guarantee that returnedobjectis of typeT.follow up to #1891 (comment)