Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 31165)
+++ trunk/ippTools/src/dettool.c	(revision 31205)
@@ -1351,4 +1351,10 @@
     }
 
+    PXOPT_LOOKUP_STR(det_type, config->args, "-set_det_type", false, false);
+    if (det_type) {
+      updating = true;
+      PXOPT_COPY_STR(config->args,     values,       "-set_det_type", "det_type", "==");
+    }
+
 
     // either -rerun or -state must be specified
Index: trunk/ippTools/src/dettoolConfig.c
===================================================================
--- trunk/ippTools/src/dettoolConfig.c	(revision 31165)
+++ trunk/ippTools/src/dettoolConfig.c	(revision 31205)
@@ -848,4 +848,5 @@
     psMetadataAddBool(updatedetrunArgs, PS_LIST_TAIL, "-again",  0,            "start a new iteration of this detrend run", false);
     psMetadataAddStr(updatedetrunArgs, PS_LIST_TAIL, "-state",  0,            "set the state of this detrend run", false);
+    psMetadataAddStr(updatedetrunArgs, PS_LIST_TAIL, "-set_det_type", 0,          "set the det_type", NULL);
     psMetadataAddTime(updatedetrunArgs, PS_LIST_TAIL, "-set_time_begin",  0,            "start of period to apply detrend too", NULL);
     psMetadataAddTime(updatedetrunArgs, PS_LIST_TAIL, "-set_time_end",  0,            "end of period to apply detrend too", NULL);
