Index: trunk/ippTools/src/dettool_stack.c
===================================================================
--- trunk/ippTools/src/dettool_stack.c	(revision 19092)
+++ trunk/ippTools/src/dettool_stack.c	(revision 23688)
@@ -127,9 +127,9 @@
     PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false);
 
-    PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
-
-    // Required if code == 0
-    PXOPT_LOOKUP_STR(uri, config->args, "-uri", (code == 0), false);
-    PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (code == 0), false);
+    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
+
+    // Required if fault == 0
+    PXOPT_LOOKUP_STR(uri, config->args, "-uri", (fault == 0), false);
+    PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false);
 
     // optional
@@ -188,6 +188,6 @@
             user_4,
             user_5,
-	    "full",
-            code
+            "full",
+            fault
         );
 
@@ -286,5 +286,5 @@
     PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "==");
     PXOPT_COPY_STR(config->args, where, "-class_id",  "class_id", "==");
-    PXOPT_COPY_S16(config->args, where, "-code",      "fault", "==");
+    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
 
     psString query = pxDataGet("dettool_revertstacked.sql");
@@ -326,5 +326,5 @@
 
     if (!setStackedImfileDataState(config, det_id, iteration, class_id, data_state)) {
-	return false;
+        return false;
     }
     return true;
