Changeset 25682 for trunk/ippTools/src/warptool.c
- Timestamp:
- Sep 29, 2009, 10:03:09 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/warptool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/warptool.c
r25324 r25682 1198 1198 PXOPT_COPY_STR(config->args, where, "-exp_name", "rawExp.exp_name", "=="); 1199 1199 PXOPT_COPY_S64(config->args, where, "-fake_id", "fakeRun.fake_id", "=="); 1200 PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawExp.dateobs", ">="); 1201 PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawExp.dateobs", "<="); 1202 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 1203 1204 PXOPT_LOOKUP_BOOL(destreaked, config->args, "-destreaked", false); 1205 1200 1206 1201 1207 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1202 1208 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1209 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 1203 1210 1204 1211 // find all rawImfiles matching the default query … … 1213 1220 psStringAppend(&query, " AND %s", whereClause); 1214 1221 psFree(whereClause); 1222 } else if (!all) { 1223 psError(PXTOOLS_ERR_DATA, true, "search parameters or -all are required"); 1224 return false; 1215 1225 } 1216 1226 psFree(where); 1227 1228 if (destreaked) { 1229 psStringAppend(&query, " AND warpSkyfile.magicked != 0"); 1230 } 1217 1231 1218 1232 // treat limit == 0 as "no limit"
Note:
See TracChangeset
for help on using the changeset viewer.
