Changeset 5084 for trunk/psphot/src/psphotArguments.c
- Timestamp:
- Sep 20, 2005, 6:48:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotArguments.c
r5049 r5084 38 38 } 39 39 40 // optional output residual image - add to config 41 char *photcode = NULL; 42 if ((N = psArgumentGet (*argc, argv, "-photcode"))) { 43 psArgumentRemove (N, argc, argv); 44 photcode = psStringCopy (argv[N]); 45 psArgumentRemove (N, argc, argv); 46 } 47 40 48 if (*argc != 4) usage (); 41 49 … … 60 68 psMetadataAdd (config, PS_LIST_HEAD, "RESID_IMAGE", mode, "", resid); 61 69 } 70 if (photcode != NULL) { 71 psMetadataAdd (config, PS_LIST_HEAD, "PHOTCODE", mode, "", photcode); 72 } 62 73 return (config); 63 74 } … … 70 81 fprintf (stderr, " -weight (filename)\n"); 71 82 fprintf (stderr, " -resid (filename)\n"); 83 fprintf (stderr, " -photcode (photcode)\n"); 72 84 exit (2); 73 85 }
Note:
See TracChangeset
for help on using the changeset viewer.
