@@ -347,10 +347,12 @@ class ExtractMessages(CommandMixin):
347347 'header comment for the catalog' ),
348348 ('last-translator=' , None ,
349349 'set the name and email of the last translator in output' ),
350+ ('follow-links' , 'l' ,
351+ 'follow symbolic links when traversing directories' ),
350352 ]
351353 boolean_options = [
352354 'no-default-keywords' , 'no-location' , 'omit-header' , 'no-wrap' ,
353- 'sort-output' , 'sort-by-file' , 'strip-comments' ,
355+ 'sort-output' , 'sort-by-file' , 'strip-comments' , 'follow-links'
354356 ]
355357 as_args = 'input-paths'
356358 multiple_value_options = (
@@ -390,6 +392,7 @@ def initialize_options(self):
390392 self .version = None
391393 self .add_comments = None
392394 self .strip_comments = False
395+ self .follow_links = False
393396 self .include_lineno = True
394397 self .ignore_dirs = None
395398 self .header_comment = None
@@ -518,6 +521,7 @@ def run(self):
518521 callback = callback ,
519522 strip_comment_tags = self .strip_comments ,
520523 directory_filter = self .directory_filter ,
524+ follow_links = self .follow_links ,
521525 )
522526 for filename , lineno , message , comments , context in extracted :
523527 if os .path .isfile (path ):
0 commit comments