diff --git a/dotdrop/options.py b/dotdrop/options.py index 0815ae8..7825944 100644 --- a/dotdrop/options.py +++ b/dotdrop/options.py @@ -54,7 +54,7 @@ USAGE = """ Usage: dotdrop install [-VbtfndDa] [-c ] [-p ] [...] dotdrop import [-Vbdf] [-c ] [-p ] [-s ] - [-l ] ... + [-w ] [-l ] ... dotdrop compare [-LVb] [-c ] [-p ] [-C ...] [-i ...] dotdrop update [-VbfdkP] [-c ] [-p ] @@ -86,6 +86,7 @@ Options: -t --temp Install to a temporary directory for review. -T --template Only template dotfiles. -V --verbose Be verbose. + -w --workers= Number of concurrent workers [default: 1]. -v --version Show version. -h --help Show this screen. """.format(BANNER, PROFILE) @@ -237,8 +238,7 @@ class Options(AttrMonitor): self.install_default_actions_post = [a for a in self.default_actions if a.kind == Action.post] self.install_ignore = self.instignore - # TODO add as option - self.install_parallel = True + self.install_parallel = int(self.args['--workers']) # "compare" specifics self.compare_focus = self.args['--file'] self.compare_ignore = self.args['--ignore'] diff --git a/tests/helpers.py b/tests/helpers.py index d6347c2..8abb198 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -131,6 +131,7 @@ def _fake_args(): args['--grepable'] = False args['--as'] = None args['--file-only'] = False + args['--workers'] = 1 # cmds args['profiles'] = False args['files'] = False