Closed apmorton closed 3 months ago
It's not possible to detect this without expensive checks that would slow down command execution. Given that this wouldn't actually happen with correctly constructed commands, that would be a needless check in most cases. Perhaps a limiting or testing tool could detect this instead.
I'm not familiar with the click internals, so maybe I'm missing something here, but I don't see why this check would be expensive?
This feels like something that boils down to keeping a set of strings somewhere and checking for overlap when adding new options?
It is possible to inadvertently have multiple options that have overlapping flags. Click doesn't detect or warn about this scenario, and it becomes impossible to provide a value for the first option.
Environment: