Changeset 4346
- Timestamp:
- 03/08/09 21:12:58 (4 years ago)
- Files:
-
- 1 modified
-
trunk/utils/i18n/pygettext.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils/i18n/pygettext.py
r4280 r4346 152 152 should not have their docstrings extracted. This is only useful in 153 153 conjunction with the -D option above. 154 155 -L language 156 --language=language 157 No op, always assume Python as the language. 154 158 155 159 If `inputfile' is -, standard input is read. … … 502 506 503 507 504 505 def main(): 508 def main(argv=sys.argv[1:]): 506 509 global default_keywords 507 510 try: 508 511 opts, args = getopt.getopt( 509 sys.argv[1:],510 'ad:DEhk:Kno:p:S:Vvw:x:X: ',512 argv, 513 'ad:DEhk:Kno:p:S:Vvw:x:X:L:', 511 514 ['extract-all', 'default-domain=', 'escape', 'help', 512 515 'keyword=', 'no-default-keywords', 513 516 'add-location', 'no-location', 'output=', 'output-dir=', 514 517 'style=', 'verbose', 'version', 'width=', 'exclude-file=', 515 'docstrings', 'no-docstrings', 518 'docstrings', 'no-docstrings', 'language=' 516 519 ]) 517 520 except getopt.error, msg: … … 660 663 fp.close() 661 664 662 663 665 if __name__ == '__main__': 664 666 main()
