Index: trunk/ippTools/src/dettool_residimfile.c
===================================================================
--- trunk/ippTools/src/dettool_residimfile.c	(revision 23688)
+++ trunk/ippTools/src/dettool_residimfile.c	(revision 26815)
@@ -282,11 +282,16 @@
 {
     PS_ASSERT_PTR_NON_NULL(config, NULL);
-
+    
     PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false);
-    PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", true, false);
-    PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false);
-    PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false);
     PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false);
-    if (!setResidImfileDataState(config, det_id, iteration, exp_id, class_id, data_state)) {
+
+    psMetadata *where = psMetadataAlloc();
+
+    PXOPT_COPY_S64(config->args,where,"-det_id","det_id","==");
+    PXOPT_COPY_S32(config->args,where,"-iteration", "iteration","==");
+    PXOPT_COPY_S64(config->args,where,"-exp_id","exp_id","==");
+    PXOPT_COPY_STR(config->args,where,"-class_id","class_id","==");
+    
+    if (!setResidImfileDataState(config, where, data_state)) {
         return false;
     }
