Changeset 36580 for trunk/ppBackground/src/ppBackgroundStackArguments.c
- Timestamp:
- Mar 7, 2014, 6:08:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppBackground/src/ppBackgroundStackArguments.c
r36579 r36580 48 48 psMetadataAddStr(arguments, PS_LIST_TAIL, "-image", 0, "Filename of image (required)", NULL); 49 49 psMetadataAddStr(arguments, PS_LIST_TAIL, "-mask", 0, "Filename of mask", NULL); 50 psMetadataAddBool(arguments, PS_LIST_TAIL, "-fitOTAs", 0, "" );51 psMetadataAddStr(arguments, PS_LIST_TAIL, "-OTApath", 0, "" );50 psMetadataAddBool(arguments, PS_LIST_TAIL, "-fitOTAs", 0, "", false); 51 psMetadataAddStr(arguments, PS_LIST_TAIL, "-OTApath", 0, "", NULL); 52 52 53 53 if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 2) { … … 56 56 57 57 unsigned int numBad = 0; // Number of bad lines 58 data->contents = psMetadataConfigRead(NULL, &numBad,psMetadataLookupStr(NULL, arguments, "-input") );59 if (! inputs|| numBad > 0) {58 data->contents = psMetadataConfigRead(NULL, &numBad,psMetadataLookupStr(NULL, arguments, "-input"),false); 59 if (!(data->contents) || numBad > 0) { 60 60 psError(PPBACKGROUND_ERR_CONFIG, false, "Unable to cleanly read MDC file with inputs."); 61 61 return(false);
Note:
See TracChangeset
for help on using the changeset viewer.
