[postprocessor:compare] extend 'action' option (#1592)

allow setting it to "abort", "terminate", or "exit" as with 'skip'
This commit is contained in:
Mike Fährmann
2021-10-01 19:30:51 +02:00
parent fb98b3fdaf
commit cdd72e1413
2 changed files with 35 additions and 5 deletions

View File

@@ -2691,6 +2691,17 @@ Description
The action to take when files do not compare as equal.
* ``"replace"``: Replace/Overwrite the old version with the new one
* ``"abort:N"``: Same as ``"replace"`` and stop the current extractor run
after ``N`` consecutive files compared as equal.
* ``"terminate:N"``: Same as ``"replace"``
and stop the current extractor run, including parent extractors,
after ``N`` consecutive files compared as equal.
* ``"exit:N"``: Same as ``"replace"`` and exit the program
after ``N`` consecutive files compared as equal.
* ``"enumerate"``: Add an enumeration index to the filename of the new
version like `skip = "enumerate" <extractor.*.skip_>`__