IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2006, 3:15:12 PM (20 years ago)
Author:
jhoblitt
Message:

change -addnormalized to require options -det_id, -class_id, -uri, -stats, & -recipe

File:
1 edited

Legend:

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

    r7304 r7315  
    10751075        return false;
    10761076    }
     1077    if (!det_id) {
     1078        psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     1079        return false;
     1080    }
    10771081    psString class_id = psMetadataLookupStr(&status, config->args, "-class_id");
    10781082    if (!status) {
     
    10801084        return false;
    10811085    }
     1086    if (!class_id) {
     1087        psError(PS_ERR_UNKNOWN, true, "-class_id is required");
     1088        return false;
     1089    }
    10821090    psString uri    = psMetadataLookupStr(&status, config->args, "-uri");
    10831091    if (!status) {
     
    10851093        return false;
    10861094    }
     1095    if (!uri) {
     1096        psError(PS_ERR_UNKNOWN, true, "-uri is required");
     1097        return false;
     1098    }
    10871099    psString recipe = psMetadataLookupStr(&status, config->args, "-recipe");
    10881100    if (!status) {
     
    10901102        return false;
    10911103    }
     1104    if (!recipe) {
     1105        psError(PS_ERR_UNKNOWN, true, "-recipe is required");
     1106        return false;
     1107    }
    10921108    psString stats = psMetadataLookupStr(&status, config->args, "-stats");
    10931109    if (!status) {
    10941110        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
     1111        return false;
     1112    }
     1113    if (!stats) {
     1114        psError(PS_ERR_UNKNOWN, true, "-stats is required");
    10951115        return false;
    10961116    }
Note: See TracChangeset for help on using the changeset viewer.