Changeset 19962 for trunk/ppSub/src/ppSubArguments.c
- Timestamp:
- Oct 7, 2008, 2:07:16 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubArguments.c
r19698 r19962 7 7 #include <pslib.h> 8 8 #include <psmodules.h> 9 #include <psphot.h> 9 10 10 11 #include "ppSub.h" … … 172 173 { 173 174 assert(config); 175 176 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim 177 if (!recipe) { 178 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE); 179 return false; 180 } 181 182 { 183 int arg; // Argument Number 184 if ((arg = psArgumentGet(argc, argv, "-psphot-visual"))) { 185 psArgumentRemove(arg, &argc, argv); 186 psMetadataAddBool(recipe, PS_LIST_TAIL, "PSPHOT.VISUAL", 0, "Visual guide to psphot?", true); 187 } 188 } 174 189 175 190 pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSUB.SOURCES", "-sources", NULL); … … 249 264 } 250 265 251 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim252 if (!recipe) {253 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE);254 return false;255 }256 257 266 if (psMetadataLookupBool(NULL, arguments, "-photometry")) { 258 267 psMetadataAddBool(recipe, PS_LIST_TAIL, "PHOTOMETRY", PS_META_REPLACE, "Perform photometry?", true);
Note:
See TracChangeset
for help on using the changeset viewer.
