Changeset 12992
- Timestamp:
- Apr 24, 2007, 11:45:24 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroArguments.c
r12806 r12992 7 7 8 8 if (argc == 1) { 9 psError(PSASTRO_ERR_ARGUMENTS, true, "No arguments supplied");10 psErrorStackPrint(stderr, "exit");11 return NULL;9 psError(PSASTRO_ERR_ARGUMENTS, true, "No arguments supplied"); 10 psErrorStackPrint(stderr, "exit"); 11 return NULL; 12 12 } 13 13 … … 16 16 if (config == NULL) { 17 17 psError(PSASTRO_ERR_CONFIG, false, "Can't read site configuration"); 18 psErrorStackPrint(stderr, "exit");18 psErrorStackPrint(stderr, "exit"); 19 19 return NULL; 20 20 } … … 58 58 } 59 59 60 status = pmConfigFileSetsMD (config->arguments, config, "INPUT", "-file", "-list");60 status = pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list"); 61 61 if (!status) { 62 psError(PSASTRO_ERR_ARGUMENTS, true, "Missing -file (input) or -list (input)");63 psErrorStackPrint(stderr, "exit");64 return NULL;62 psError(PSASTRO_ERR_ARGUMENTS, true, "Missing -file (input) or -list (input)"); 63 psErrorStackPrint(stderr, "exit"); 64 return NULL; 65 65 } 66 66 67 67 if (argc != 2) { 68 psError(PSASTRO_ERR_ARGUMENTS, true, "Incorrect arguments supplied");69 psErrorStackPrint(stderr, "exit");70 return NULL;68 psError(PSASTRO_ERR_ARGUMENTS, true, "Incorrect arguments supplied"); 69 psErrorStackPrint(stderr, "exit"); 70 return NULL; 71 71 } 72 72 73 73 // output positions is fixed 74 74 psMetadataAddStr (config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "", argv[1]);
Note:
See TracChangeset
for help on using the changeset viewer.
