diff options
author | Beomsoo Kim <beoms424@gmail.com> | 2024-11-26 08:54:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 08:54:02 (GMT) |
commit | f46d8475749a0eadbc1f37079906a8e1ed5d56dc (patch) | |
tree | de9ca292f9a310f7164e2b711aaab6632ff88738 /Misc | |
parent | 733fe59206e04141fd5cf65606ebd3d42a996226 (diff) | |
download | cpython-f46d8475749a0eadbc1f37079906a8e1ed5d56dc.zip cpython-f46d8475749a0eadbc1f37079906a8e1ed5d56dc.tar.gz cpython-f46d8475749a0eadbc1f37079906a8e1ed5d56dc.tar.bz2 |
gh-126946: Improve error message in getopt.do_longs based on existing comment (GH-126871)
Include a list of possibilities for not unique prefix.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-11-18-16-43-11.gh-issue-126946.52Ou-B.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-11-18-16-43-11.gh-issue-126946.52Ou-B.rst b/Misc/NEWS.d/next/Library/2024-11-18-16-43-11.gh-issue-126946.52Ou-B.rst new file mode 100644 index 0000000..448055c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-11-18-16-43-11.gh-issue-126946.52Ou-B.rst @@ -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`. |