Changeset 27227 for trunk/pswarp/src/pswarpArguments.c
- Timestamp:
- Mar 9, 2010, 2:28:05 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpArguments.c
r27096 r27227 14 14 # include <glob.h> 15 15 16 17 static void usage (void) { 18 fprintf(stderr, "USAGE: pswarp [-file image(s)] [-list imagelist] [options] (output) (skycell)\n"); 19 fprintf(stderr, " options:\n"); 20 fprintf(stderr, " [-astrom astrom.cmp] : provide an alternative astrometry calibration\n"); 21 fprintf(stderr, " [-mask mask.fits] : provide a corresponding mask image\n"); 22 fprintf(stderr, " [-variance variance.fits] : provide a corresponding variance image\n"); 23 psErrorStackPrint(stderr, "\n"); 24 exit(PS_EXIT_CONFIG_ERROR); 25 } 26 27 16 28 pmConfig *pswarpArguments (int argc, char **argv) { 17 29 … … 20 32 21 33 if (argc == 1) { 22 psError(PSWARP_ERR_ARGUMENTS, true, "No arguments supplied"); 23 return NULL; 34 usage(); 24 35 } 25 36 … … 91 102 92 103 if (argc != 3) { 93 psError(PSWARP_ERR_ARGUMENTS, true, "Incorrect arguments supplied"); 94 return NULL; 104 usage(); 95 105 } 96 106
Note:
See TracChangeset
for help on using the changeset viewer.
