Skip to content

Commit d585bf5

Browse files
Remove unimplemented option from pygettext
1 parent 2e8044a commit d585bf5

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove unimplemented `-a`/`--extract-all` option from pygettext.

Tools/i18n/pygettext.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
4343
Options:
4444
45-
-a
46-
--extract-all
47-
Extract all strings.
48-
4945
-d name
5046
--default-domain=name
5147
Rename the default output file from messages.pot to name.pot.
@@ -473,8 +469,8 @@ def main():
473469
try:
474470
opts, args = getopt.getopt(
475471
sys.argv[1:],
476-
'ad:DEhk:Kno:p:S:Vvw:x:X:',
477-
['extract-all', 'default-domain=', 'escape', 'help',
472+
'd:DEhk:Kno:p:S:Vvw:x:X:',
473+
['default-domain=', 'escape', 'help',
478474
'keyword=', 'no-default-keywords',
479475
'add-location', 'no-location', 'output=', 'output-dir=',
480476
'style=', 'verbose', 'version', 'width=', 'exclude-file=',
@@ -489,7 +485,6 @@ class Options:
489485
GNU = 1
490486
SOLARIS = 2
491487
# defaults
492-
extractall = 0 # FIXME: currently this option has no effect at all.
493488
escape = 0
494489
keywords = []
495490
outpath = ''
@@ -511,8 +506,6 @@ class Options:
511506
for opt, arg in opts:
512507
if opt in ('-h', '--help'):
513508
usage(0)
514-
elif opt in ('-a', '--extract-all'):
515-
options.extractall = 1
516509
elif opt in ('-d', '--default-domain'):
517510
options.outfile = arg + '.pot'
518511
elif opt in ('-E', '--escape'):

0 commit comments

Comments
 (0)