Add command-line parameter to skip the deletion of entities
When using running Finalizer for a country for which knowingly no entities and assets exist in the database, calling the two functions
if finalizer.exposure_db.exposure_exists(country_iso_code, check_reference=False):
finalizer.exposure_db.remove_exposure(country_iso_code, delete_reference=False)
can be skipped to save time. Therefore, I suggest to add a new command-line parameter --skip-deletion
. It seems good that this parameter only exist in the long version so that unintentional misuse can be excluded.
Edited by Danijel Schorlemmer