Index: trunk/ippTools/src/stacktool.c
===================================================================
--- trunk/ippTools/src/stacktool.c	(revision 16726)
+++ trunk/ippTools/src/stacktool.c	(revision 16826)
@@ -119,5 +119,5 @@
     PXOPT_COPY_F32(config->args, where, "-select_solang_max", "solang", "<=");
 
-    if (!psListLength(where->list)) {
+    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
         psFree(where);
         psError(PXTOOLS_ERR_DATA, false, "search parameters are required");
@@ -174,5 +174,5 @@
     for (long i = 0; i < psArrayLength(output); i++) {
         psMetadata *md = output->data[i];
-        
+
         // pull out the warp_id, skycell_id, & tess_id
         bool status;
@@ -617,14 +617,14 @@
     // constrants
     if (!stackSumSkyfileInsert(config->dbh,
-			       (psS64)atoll(stack_id),
-			       uri,
-			       path_base,
-			       bg,
-			       bg_stdev,
-			       dtime_stack,
-			       hostname,
-			       good_frac,
-			       code
-	  )) {
+                               (psS64)atoll(stack_id),
+                               uri,
+                               path_base,
+                               bg,
+                               bg_stdev,
+                               dtime_stack,
+                               hostname,
+                               good_frac,
+                               code
+          )) {
         if (!psDBRollback(config->dbh)) {
             psError(PS_ERR_UNKNOWN, false, "database error");
