Open fiatjaf opened 3 days ago
I read the code but my understanding of it doesn't match what happens when I remove that function entirely.
It looks like the only things it does in practice is to disallow using the long form and the short form alias of the same flag in a same call.
Is there a reason why that should be disallowed? Or is that a necessity due to some constraint I am not seeing?
@fiatjaf Thats one of the reasons. The other reason is that the flag aliases values are duplicated into the set for retrieval but set.Value function.
I read the code but my understanding of it doesn't match what happens when I remove that function entirely.
It looks like the only things it does in practice is to disallow using the long form and the short form alias of the same flag in a same call.
Is there a reason why that should be disallowed? Or is that a necessity due to some constraint I am not seeing?