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
Default suggest_on_error to True in argparse.ArgumentParser #140448
Change the default value of the suggest_on_error parameter in argparse.ArgumentParser from False to True.
This improves the UX of the argparse module by making helpful error suggestions the default behavior.
While this is technically a breaking change, the impact is negligible as it only affects error messages (which already indicate failure). Users who prefer the old behavior can explicitly set suggest_on_error=False.
Activity
gh-140448: Default `suggest_on_error` to `True` in `argparse.Argument…
pythongh-140448: Default `suggest_on_error` to `True` in `argparse.Ar…