IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2006, 1:42:38 PM (20 years ago)
Author:
jhoblitt
Message:

add -exp_type to -updateexp

File:
1 edited

Legend:

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

    r8661 r8711  
    676676
    677677    bool status = false;
     678    psString exp_type = psMetadataLookupStr(&status, config->args, "-exp_type");
     679    if (!status) {
     680        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_type");
     681        return false;
     682    }
     683    if (!exp_type) {
     684        psError(PS_ERR_UNKNOWN, true, "-exp_type is required");
     685        return false;
     686    }
    678687    psString filter = psMetadataLookupStr(&status, config->args, "-filter");
    679688    if (!status) {
     
    789798        exp->camera,
    790799        exp->telescope,
    791         exp->exp_type,
     800        exp_type,
    792801        exp->imfiles,
    793802        filter,
Note: See TracChangeset for help on using the changeset viewer.