-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-126946: Improve error message in getopt.do_longs based on existing…
… comment (GH-126871) Include a list of possibilities for not unique prefix.
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
option -%s not recognized | ||
option -%s requires argument | ||
option --%s must not have an argument | ||
option --%s not a unique prefix | ||
option --%s not a unique prefix; possible options: %s | ||
option --%s not recognized | ||
option --%s requires argument |
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Library/2024-11-18-16-43-11.gh-issue-126946.52Ou-B.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Improve the :exc:`~getopt.GetoptError` error message when a long option | ||
prefix matches multiple accepted options in :func:`getopt.getopt` and | ||
:func:`getopt.gnu_getopt`. |