Index: trunk/ippScripts/scripts/chip_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/chip_imfile.pl	(revision 18562)
+++ trunk/ippScripts/scripts/chip_imfile.pl	(revision 19127)
@@ -25,5 +25,5 @@
 
 # Parse the command-line arguments
-my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $verbose,
+my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $threads, $verbose,
      $no_update, $no_op, $redirect );
 GetOptions(
@@ -36,4 +36,5 @@
     'dbname|d=s'    	=> \$dbname,    # Database name
     'reduction=s'   	=> \$reduction, # Reduction class
+    'threads=s'       	=> \$threads,   # Number of threads to use for ppImage
     'verbose'       	=> \$verbose,   # Print to stdout
     'no-update'     	=> \$no_update, # Don't update the database?
@@ -139,4 +140,5 @@
     $command .= " -recipe PPSTATS CHIPSTATS";
     $command .= " -stats $outputStats";
+    $command .= " -threads $threads" if defined $threads;
     $command .= " -dbname $dbname" if defined $dbname;
     $command .= " -tracedest $traceDest -log $logDest";
