mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-130195: Remove unimplemented option from pygettext (#130196)
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
This commit is contained in:
parent
99d965635a
commit
4374e1de87
2 changed files with 4 additions and 1 deletions
|
|
@ -0,0 +1 @@
|
|||
Add warning messages when ``pygettext`` unimplemented ``-a/--extract-all`` option is called.
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue