command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

`Argument.Arity` modify internal state on first get access.

Open PetSerAl opened this issue 2 months ago • 0 comments

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.

PetSerAl avatar Oct 11 '25 22:10 PetSerAl