IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15857


Ignore:
Timestamp:
Dec 16, 2007, 12:17:28 PM (18 years ago)
Author:
eugene
Message:

add -unlimit option to list all matches

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r14370 r15857  
    189189    }
    190190
    191     // XXX this needs to be more controlled: we should specifically choose the
    192     // single detrend image which matches all criteria and has the latest
     191    // we choose the single detrend image which matches all criteria and has the latest
    193192    // insertion date
    194     psStringAppend(&query, " ORDER BY registered DESC LIMIT 1");
     193
     194    // unless explicitly specified by the user, list all possible matches
     195    if (!psMetadataLookupBool(NULL, config->args, "-unlimit")) {
     196        psStringAppend(&query, " ORDER BY registered DESC LIMIT 1");
     197    }
    195198
    196199    if (!p_psDBRunQuery(config->dbh, query)) {
  • trunk/ippTools/src/detselectConfig.c

    r14023 r15857  
    6666    psMetadataAddBool(searchArgs, PS_LIST_TAIL, "-simple",  0,
    6767            "use the simple output format", false);
     68    psMetadataAddBool(searchArgs, PS_LIST_TAIL, "-unlimit",  0,
     69            "list all possible detruns, not just the best match", false);
    6870 
    6971    // -select
Note: See TracChangeset for help on using the changeset viewer.