You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add “maybe you meant” in argparse choices argument #99749
error: argument family: invalid choice: 's200flora', maybe you meant 's200flor'? (choose from 'a431', ..., 's200flor', ... 'wingdings 3')
It doesn't have to look exactly like this. I'm not talking about the implementation, perhaps the assumptions should always be (if there are matches) in the presence of the choices argument, perhaps only in some certain conditions.
These questions are decided by those who will implement it, as they see fit.
Activity
sobolevn commentedon Nov 24, 2022
Do you want to work on this? :)
ndenissov commentedon Nov 25, 2022
I don't mind working on it, I have an idea of how argparse works, it's just that I'm not a professional in git and have never done pull requests.
While this is a really good idea, I'll start working on it today.
GH-99749: Add optional feature to suggest correct names (ArgumentPars…
savannahostrowski commentedon Oct 17, 2024
Now completed with #124456
GH-99749: Add What's New entry for GH-124456 (GH-125671)
pythonGH-99749: Add optional feature to suggest correct names (Argume…
pythonGH-99749: Add What's New entry for pythonGH-124456 (pythonGH-12…