Index: trunk/ippTools/src/stacktool.c
===================================================================
--- trunk/ippTools/src/stacktool.c	(revision 19369)
+++ trunk/ippTools/src/stacktool.c	(revision 19434)
@@ -315,7 +315,7 @@
             "new",                      // state
             workdir,
-	    label,
-	    reduction,
-	    dvodb,
+            label,
+            reduction,
+            dvodb,
             registered,
             skycell_id,
@@ -356,5 +356,5 @@
         // this insert needs to use exactly the same restrictions (race condition is probably not critical)
         // the insert below seems to only restrict matches to the skycell, tess, and filter
-	if ((randomLimit > 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter, randomLimit)) ||
+        if ((randomLimit > 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter, randomLimit)) ||
             (randomLimit <= 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter))) {
             psError(PS_ERR_UNKNOWN, false, "database error");
@@ -419,7 +419,7 @@
         "new",                          // state
         workdir,
-	label,
-	reduction,
-	dvodb,
+        label,
+        reduction,
+        dvodb,
         registered,
         skycell_id,
@@ -611,4 +611,5 @@
     PXOPT_COPY_S64(config->args, where, "-warp_id", "warp_id", "==");
     PXOPT_COPY_S64(config->args, where, "-stack_id", "stack_id", "==");
+    PXOPT_COPY_STR(config->args, where, "-label", "label", "==");
 
     PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
@@ -708,5 +709,5 @@
                                uri,
                                path_base,
-			       "full",	// data_state
+                               "full",  // data_state
                                bg,
                                bg_stdev,
