Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add warning messages when ``pygettext`` unimplemented ``-a/--extract-all`` option is called.
4 changes: 3 additions & 1 deletion Tools/i18n/pygettext.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

-a
--extract-all
Extract all strings.
Deprecated: Not implemented and will be removed in a future version.

-d name
--default-domain=name
Expand Down Expand Up @@ -512,6 +512,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 ('-d', '--default-domain'):
options.outfile = arg + '.pot'
Expand Down
Loading