Index: trunk/ippTools/src/camtoolConfig.c
===================================================================
--- trunk/ippTools/src/camtoolConfig.c	(revision 10440)
+++ trunk/ippTools/src/camtoolConfig.c	(revision 11024)
@@ -49,6 +49,11 @@
     psMetadataAddS32(pendingexpArgs, PS_LIST_TAIL, "-p3_version", 0,
             "search for exposures with this p3 version", -1);
+    psMetadataAddU64(pendingexpArgs, PS_LIST_TAIL, "-limit",  0,
+        "limit result set to N items", 0);
+    psMetadataAddBool(pendingexpArgs, PS_LIST_TAIL, "-faulted",  0,
+        "only return imfiles with a fault status set", false);
     psMetadataAddBool(pendingexpArgs, PS_LIST_TAIL, "-simple", 0,
             "use the simple output format", false);
+
     
     // -pendingimfile
@@ -93,4 +98,15 @@
             "define banana 2", NULL);
 
+    // -faultexp
+    psMetadata *faultexpArgs = psMetadataAlloc();
+    psMetadataAddStr(faultexpArgs, PS_LIST_TAIL, "-exp_tag",  0,
+        "search by exposure ID", NULL);
+    psMetadataAddStr(faultexpArgs, PS_LIST_TAIL, "-class",  0,
+        "search by class", NULL);
+    psMetadataAddStr(faultexpArgs, PS_LIST_TAIL, "-class_id",  0,
+        "search by class ID", NULL);
+    psMetadataAddS8(faultexpArgs, PS_LIST_TAIL, "-code",  0,
+        "set fault code (required)", 0);
+
     // -block
     psMetadata *blockArgs = psMetadataAlloc();
@@ -128,10 +144,11 @@
     psMetadata *argSets = psMetadataAlloc();
     // find which mode we're running under
-    PXTOOL_MODE("-pendingexp",   P3TOOL_MODE_PENDINGEXP,  pendingexpArgs);
-    PXTOOL_MODE("-pendingimfile",P3TOOL_MODE_PENDINGIMFILE,pendingimfileArgs);
+    PXTOOL_MODE("-pendingexp",   P3TOOL_MODE_PENDINGEXP,    pendingexpArgs);
+    PXTOOL_MODE("-pendingimfile",P3TOOL_MODE_PENDINGIMFILE, pendingimfileArgs);
+    PXTOOL_MODE("-faultexp",     P3TOOL_MODE_FAULTEXP,      faultexpArgs);
     PXTOOL_MODE("-addprocessedexp", P3TOOL_MODE_ADDPROCESSEDEXP, addprocessedexpArgs);
-    PXTOOL_MODE("-block",        P3TOOL_MODE_BLOCK,          blockArgs);
-    PXTOOL_MODE("-masked",       P3TOOL_MODE_MASKED,         maskedArgs);
-    PXTOOL_MODE("-unblock",      P3TOOL_MODE_UNBLOCK,        unblockArgs);
+    PXTOOL_MODE("-block",        P3TOOL_MODE_BLOCK,         blockArgs);
+    PXTOOL_MODE("-masked",       P3TOOL_MODE_MASKED,        maskedArgs);
+    PXTOOL_MODE("-unblock",      P3TOOL_MODE_UNBLOCK,       unblockArgs);
 
     bool argErr = false;
@@ -210,5 +227,5 @@
     addWhereStr(filter);
 
-    if (config->where->list->n < 1) {
+    if (psListLength(config->where->list) < 1) {
         psFree(config->where);
         config->where = NULL;
