--- a/degal/main.py Thu Jun 11 20:39:59 2009 +0300
+++ b/degal/main.py Thu Jun 11 21:26:05 2009 +0300
@@ -23,6 +23,9 @@
parser.add_option('-F', "--force-update", dest='force_update', action="store_true", default=False,
help="Force updates, even for fresh items")
+
+ parser.add_option('-j', "--jobs", metavar='COUNT', type="int", dest='task_threads', default=None,
+ help="Set threaded concurrency level for tasks")
return parser
@@ -44,6 +47,9 @@
if options.force_update :
config.force_update = True
+ if options.task_threads :
+ config.task_threads = options.task_threads
+
# XXX: load config file(s)
return config