Changeset 7818 for trunk/ppImage/src/ppTest.c
- Timestamp:
- Jul 5, 2006, 12:57:39 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppTest.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppTest.c
r7677 r7818 11 11 // ppImageConfig.c 12 12 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 13 pmConfig *config = pmConfigRead( argc, argv);13 pmConfig *config = pmConfigRead(&argc, argv); 14 14 if (! config) { 15 15 psErrorStackPrint(stderr, "Can't find site configuration!\n"); … … 27 27 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "-chip", 0, "Chip number to process (if positive)", -1); 28 28 29 if (! psArgumentParse(config->arguments, & config->argc, config->argv) || argc != 3) {29 if (! psArgumentParse(config->arguments, &argc, argv) || argc != 3) { 30 30 printf("\nPan-STARRS Phase 2 processing\n\n"); 31 printf("Usage: %s INPUT.fits OUTPUT.fits\n\n", config->argv[0]);31 printf("Usage: %s INPUT.fits OUTPUT.fits\n\n", argv[0]); 32 32 psArgumentHelp(config->arguments); 33 33 psFree(config->arguments); … … 36 36 37 37 // Add the input and output images (which remain on the command-line) to the arguments list 38 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-input", 0, "Name of the input image", 39 config->argv[1]); 40 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", 41 config->argv[2]); 38 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-input", 0, "Name of the input image", argv[1]); 39 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", argv[2]); 42 40 43 41 // Define database handle, if used
Note:
See TracChangeset
for help on using the changeset viewer.
