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"
Index: /trunk/ippTools/src/regtoolConfig.c
===================================================================
--- /trunk/ippTools/src/regtoolConfig.c	(revision 10972)
+++ /trunk/ippTools/src/regtoolConfig.c	(revision 10973)
@@ -68,4 +68,6 @@
     psMetadataAddU64(pendingimfileArgs, PS_LIST_TAIL, "-limit",  0,
         "limit result set to N items", 0);
+    psMetadataAddBool(pendingimfileArgs, PS_LIST_TAIL, "-faulted",  0,
+        "only return imfiles with a fault status set", false);
     psMetadataAddBool(pendingimfileArgs, PS_LIST_TAIL, "-simple",  0,
         "use the simple output format", false);
