Commit 5a11f7ae authored by Thomas Vincent's avatar Thomas Vincent

fix numcores type

parent 88b00aec
...@@ -47,11 +47,15 @@ def main(argv): ...@@ -47,11 +47,15 @@ def main(argv):
parser.add_argument( parser.add_argument(
'--numcores', '--numcores',
nargs='?', nargs='?',
default=cpu_count(), default=cpu_count(),
help='Max number of processes to use') help='Max number of processes to use (default: %d)' % cpu_count())
options = parser.parse_args(argv[1:]) options = parser.parse_args(argv[1:])
if options.numcores <= 0:
raise ValueError(
'Number of processes to use must be strictly positive')
config.DEFAULT_PROCESS_NUMBER = options.numcores config.DEFAULT_PROCESS_NUMBER = options.numcores
if options.project_file: if options.project_file:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment