Default jobs to cpu_count; closes #151

Instead of defaulting jobs to 1, default to cpu_count so everyone can take
advantage of concurrency by default. This means most users will have one
less configuration option that needs to be set.
This commit is contained in:
Joe Gordon 2014-05-15 21:30:57 -07:00
parent ed6d0398bc
commit b8539760f6

View file

@ -50,8 +50,12 @@ def get_parser():
pass
if multiprocessing:
try:
auto = multiprocessing.cpu_count() or 1
except NotImplimentedError:
auto =1
parser.config_options.append('jobs')
parser.add_option('-j', '--jobs', type='int', default=1,
parser.add_option('-j', '--jobs', type='int', default=auto,
help="number of jobs to run simultaneously")
parser.add_option('--exit-zero', action='store_true',