IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2006, 12:04:04 PM (20 years ago)
Author:
jhoblitt
Message:

add -exp_type to -updateimfile

File:
1 edited

Legend:

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

    r8292 r8321  
    777777
    778778    bool status = false;
     779    psString exp_type = psMetadataLookupStr(&status, config->args, "-exp_type");
     780    if (!status) {
     781        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_type");
     782        return false;
     783    }
     784    if (!exp_type) {
     785        psError(PS_ERR_UNKNOWN, true, "-exp_type is required");
     786        return false;
     787    }
    779788    psString filter = psMetadataLookupStr(&status, config->args, "-filter");
    780789    if (!status) {
     
    891900        imfile->class_id,
    892901        imfile->uri,
     902        exp_type,
    893903        filter,
    894904        airmass,
Note: See TracChangeset for help on using the changeset viewer.