Skip to content

Commit f2ed973

Browse files
committed
--recompile-all-entries -> --recompile-all
Relates to #468
1 parent 9402ea5 commit f2ed973

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

textext/base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def __init__(self):
173173
)
174174

175175
self.arg_parser.add_argument(
176-
"--recompile-all-entries",
176+
"--recompile-all",
177177
action="store_true"
178178
)
179179

@@ -183,13 +183,13 @@ def __init__(self):
183183
default=self.DEFAULT_TEXCMD
184184
)
185185

186-
def _recompile_all_entries(self):
186+
def _recompile_all(self):
187187
"""
188188
Mutate ``self.svg`` to recompile all textext entries.
189189
This can be invoked from command-line as::
190190
191-
python3 /path/to/textext/__main__.py --recompile-all-entries > edited.svg < original.svg
192-
python3 /path/to/textext/__main__.py --recompile-all-entries --output edited.svg < original.svg
191+
python3 /path/to/textext/__main__.py --recompile-all > edited.svg < original.svg
192+
python3 /path/to/textext/__main__.py --recompile-all --output edited.svg < original.svg
193193
194194
In the first form ``edited.svg`` must not be the same as ``original.svg``,
195195
in the second form it is probably fine (although do make a backup).
@@ -205,8 +205,8 @@ def effect(self):
205205
"""Perform the effect: create/modify TexText objects"""
206206
with logger.debug("TexText.effect"):
207207

208-
if self.options.recompile_all_entries:
209-
self._recompile_all_entries()
208+
if self.options.recompile_all:
209+
self._recompile_all()
210210
return
211211

212212
# Find root element

0 commit comments

Comments
 (0)