Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 10972)
+++ trunk/ippTools/src/regtool.c	(revision 10973)
@@ -176,4 +176,10 @@
     }
 
+    bool faulted = psMetadataLookupU64(&status, config->args, "-faulted");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -faulted");
+        return false;
+    }
+
     // select newImfiles that:
     // exp_tag is in newExp
@@ -192,4 +198,8 @@
         " AND rawDetrendExp.exp_tag IS NULL"
     );
+
+    if (faulted) {
+        psStringAppend(&query, " %s", "AND newImfile.flags > 0");
+    }
 
     // treat limit == 0 as "no limit"
