@@ -67,6 +67,10 @@ def add_arguments(self, subparsers):
6767 '--override-tags' , action = 'store_true' , dest = 'override_tags' , default = False ,
6868 help = ('Override tags when pushing content' ),
6969 )
70+ parser .add_argument (
71+ '--override-occurrences' , action = 'store_true' , dest = 'override_occurrences' , default = False ,
72+ help = ('Override occurrences when pushing content' ),
73+ )
7074 parser .add_argument (
7175 '--do-not-keep-translations' , action = 'store_true' , dest = 'do_not_keep_translations' , default = False ,
7276 help = ('Remove translations when source strings change' ),
@@ -99,6 +103,7 @@ def handle(self, *args, **options):
99103 self .without_tags_only = options ['without_tags_only' ]
100104 self .dry_run = options ['dry_run' ]
101105 self .override_tags = options ['override_tags' ]
106+ self .override_occurrences = options ['override_occurrences' ]
102107 self .do_not_keep_translations = options ['do_not_keep_translations' ]
103108 self .no_wait = options ['no_wait' ]
104109 self .key_generator = options ['key_generator' ]
@@ -193,7 +198,8 @@ def push_strings(self):
193198 )
194199 status_code , response_content = tx .push_source_strings (
195200 self .string_collection .strings .values (), self .purge ,
196- self .do_not_keep_translations , self .override_tags
201+ self .do_not_keep_translations , self .override_tags ,
202+ self .override_occurrences
197203 )
198204
199205 if self .no_wait :
0 commit comments