Just a heads up that the Did you mean feature has been merged upstream in Click, see
And will be part of the next 8.4.0 release: https://github.com/pallets/click/milestone/31
So I guess you can revise your own implementation and simplify it. Or even better, maybe propose a better implementation on Click side so we can make your life easier.
Just a heads up that the
Did you meanfeature has been merged upstream in Click, seeNoSuchCommandexception with suggestions for misspelled commands pallets/click#3228Did you meanfor misspelled commands pallets/click#3107And will be part of the next 8.4.0 release: https://github.com/pallets/click/milestone/31
So I guess you can revise your own implementation and simplify it. Or even better, maybe propose a better implementation on Click side so we can make your life easier.