command-line-api
command-line-api copied to clipboard
`Argument.Arity` modify internal state on first get access.
Argument.Arity modify internal state on first get access:
https://github.com/dotnet/command-line-api/blob/7a5ab9e32c4a8a66b925b9380408a6847e3fd098/src/System.CommandLine/Argument.cs#L35-L43
This behavior can be problematic with debugger. As debugger display value for property it would be fixed with possibly incorrect value. Argument should define debugger view that does not initialize Arity on first get access.