IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16667


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

add -queue -pretend flag

Location:
trunk/ippTools/src
Files:
2 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
  • trunk/ippTools/src/chiptoolConfig.c

    r16666 r16667  
    137137    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_end_stage",  0,
    138138            "define end stage", NULL);
     139    psMetadataAddBool(queueArgs, PS_LIST_TAIL, "-pretend",  0,
     140            "do not actually modify the database", false);
    139141
    140142
Note: See TracChangeset for help on using the changeset viewer.