diff options
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r-- | subcmds/forall.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index ef11851b..d871b3ea 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
@@ -21,7 +21,7 @@ import sys | |||
21 | import subprocess | 21 | import subprocess |
22 | 22 | ||
23 | from color import Coloring | 23 | from color import Coloring |
24 | from command import Command, MirrorSafeCommand | 24 | from command import DEFAULT_LOCAL_JOBS, Command, MirrorSafeCommand |
25 | import platform_utils | 25 | import platform_utils |
26 | 26 | ||
27 | _CAN_COLOR = [ | 27 | _CAN_COLOR = [ |
@@ -113,8 +113,11 @@ terminal and are not redirected. | |||
113 | If -e is used, when a command exits unsuccessfully, '%prog' will abort | 113 | If -e is used, when a command exits unsuccessfully, '%prog' will abort |
114 | without iterating through the remaining projects. | 114 | without iterating through the remaining projects. |
115 | """ | 115 | """ |
116 | PARALLEL_JOBS = DEFAULT_LOCAL_JOBS | ||
116 | 117 | ||
117 | def _Options(self, p): | 118 | def _Options(self, p): |
119 | super()._Options(p) | ||
120 | |||
118 | def cmd(option, opt_str, value, parser): | 121 | def cmd(option, opt_str, value, parser): |
119 | setattr(parser.values, option.dest, list(parser.rargs)) | 122 | setattr(parser.values, option.dest, list(parser.rargs)) |
120 | while parser.rargs: | 123 | while parser.rargs: |
@@ -148,9 +151,6 @@ without iterating through the remaining projects. | |||
148 | g.add_option('-v', '--verbose', | 151 | g.add_option('-v', '--verbose', |
149 | dest='verbose', action='store_true', | 152 | dest='verbose', action='store_true', |
150 | help='Show command error messages') | 153 | help='Show command error messages') |
151 | g.add_option('-j', '--jobs', | ||
152 | dest='jobs', action='store', type='int', default=1, | ||
153 | help='number of commands to execute simultaneously') | ||
154 | 154 | ||
155 | def WantPager(self, opt): | 155 | def WantPager(self, opt): |
156 | return opt.project_header and opt.jobs == 1 | 156 | return opt.project_header and opt.jobs == 1 |