Index: trunk/ippTasks/detrend.stack.pro
===================================================================
--- trunk/ippTasks/detrend.stack.pro	(revision 12371)
+++ trunk/ippTasks/detrend.stack.pro	(revision 12697)
@@ -125,5 +125,4 @@
     book getword detPendingStackedImfile $pageName workdir   -var WORKDIR
     book getword detPendingStackedImfile $pageName dbname    -var DBNAME
-    set_standard_args
 
     # specify choice of remote host:
@@ -148,8 +147,9 @@
     options $pageName
 
-    $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA $ARGS
+    $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA
     if ("$WORKDIR" != "NULL")
       $run = $run --workdir $WORKDIR
     end
+    add_standard_args run
 
     # create the command line
