gh-130195: Remove unimplemented option from pygettext (#130196)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
This commit is contained in:
Stan Ulbrych 2025-02-18 03:01:36 +00:00 committed by GitHub
parent 99d965635a
commit 4374e1de87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1 @@
Add warning messages when ``pygettext`` unimplemented ``-a/--extract-all`` option is called.

View file

@ -44,7 +44,7 @@
-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 @@ class Options:
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)