degal/main.py
changeset 117 a2e4562deaab
parent 111 ecceaf23c969
child 118 60b126ff0b74
--- a/degal/main.py	Sun Jun 14 18:24:14 2009 +0300
+++ b/degal/main.py	Sun Jun 14 20:05:11 2009 +0300
@@ -30,6 +30,9 @@
     parser.add_option("--with-exif",            dest='exif_enabled', action="store_true", default=None,
             help="Include Exif metadata in updated .html files")
 
+    parser.add_option('-c', "--thread-count",   dest='thread_count', type="int", default=None,
+            help="Size of thread pool")
+
     parser.add_option('-d', "--debug",          dest='debug', action="store_true", default=False,
             help="Show debug output")
 
@@ -63,6 +66,9 @@
     if options.exif_enabled is not None :
         config.exif_enabled = options.exif_enabled
 
+    if options.thread_count is not None :
+        config.thread_count = options.thread_count
+
     if options.debug :
         config.log_level = config_module.logging.DEBUG