IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2008, 1:48:31 PM (18 years ago)
Author:
jhoblitt
Message:

add -queue -pretend flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.c

    r16666 r16667  
    165165    // default
    166166    PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "==");
     167    PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false);
    167168
    168169    // find the exp_id of all the exposures that we want to queue up.
     
    178179        psStringAppend(&query, " AND %s", whereClause);
    179180        psFree(whereClause);
     181    }
     182
     183    if (pretend) {
     184        // then stop before running the query
     185        fprintf(stderr, "%s\n", query);
     186        psFree(query);
     187        return true;
    180188    }
    181189
Note: See TracChangeset for help on using the changeset viewer.