]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-130195: Remove unimplemented option from pygettext (#130196)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Tue, 18 Feb 2025 03:01:36 +0000 (03:01 +0000)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2025 03:01:36 +0000 (19:01 -0800)
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst [new file with mode: 0644]
Tools/i18n/pygettext.py

diff --git a/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst b/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst
new file mode 100644 (file)
index 0000000..84edf0e
--- /dev/null
@@ -0,0 +1 @@
+Add warning messages when ``pygettext`` unimplemented ``-a/--extract-all`` option is called.
index 9654dd45067ff9e6c62739146e9e170146a6551f..4681c84387958e805a8077c8373be8dd2fc5749a 100755 (executable)
@@ -44,7 +44,7 @@ Options:
 
     -a
     --extract-all
-        Extract all strings.
+        Deprecated: Not implemented and will be removed in a future version.
 
     -cTAG
     --add-comments=TAG
@@ -590,6 +590,8 @@ def main():
         if opt in ('-h', '--help'):
             usage(0)
         elif opt in ('-a', '--extract-all'):
+            print("DepreciationWarning: -a/--extract-all is not implemented and will be removed in a future version",
+                  file=sys.stderr)
             options.extractall = 1
         elif opt in ('-c', '--add-comments'):
             options.comment_tags.add(arg)