1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 11:24:16 +00:00

disable workers without --force or with --dry

This commit is contained in:
deadc0de6
2020-11-17 11:25:03 +01:00
parent 5fb1024975
commit 89d6a1b6ed
2 changed files with 7 additions and 13 deletions

View File

@@ -227,6 +227,13 @@ class Options(AttrMonitor):
self.log.err('bad option for --workers')
sys.exit(USAGE)
if self.safe and self.workers > 1:
self.log.warn('workers set to 1 when --force is not used')
self.workers = 1
if self.dry and self.workers > 1:
self.log.warn('workers set to 1 when --dry is used')
self.workers = 1
# import link default value
self.import_link = self.link_on_import
if self.args['--link']: