Skip to content

Commit 4374e1d

Browse files
gh-130195: Remove unimplemented option from pygettext (#130196)
Co-authored-by: Tomas R. <[email protected]>
1 parent 99d9656 commit 4374e1d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add warning messages when ``pygettext`` unimplemented ``-a/--extract-all`` option is called.

Tools/i18n/pygettext.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
4545
-a
4646
--extract-all
47-
Extract all strings.
47+
Deprecated: Not implemented and will be removed in a future version.
4848
4949
-cTAG
5050
--add-comments=TAG
@@ -590,6 +590,8 @@ class Options:
590590
if opt in ('-h', '--help'):
591591
usage(0)
592592
elif opt in ('-a', '--extract-all'):
593+
print("DepreciationWarning: -a/--extract-all is not implemented and will be removed in a future version",
594+
file=sys.stderr)
593595
options.extractall = 1
594596
elif opt in ('-c', '--add-comments'):
595597
options.comment_tags.add(arg)

0 commit comments

Comments
 (0)