IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7730


Ignore:
Timestamp:
Jun 28, 2006, 9:32:49 AM (20 years ago)
Author:
eugene
Message:

fixed error message for missings cmd-line args

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.c

    r7677 r7730  
    11# include "psphot.h"
     2
     3static void usage (void) {
     4    fprintf (stderr, "USAGE: ppImage [-file INPUT.fits] [-list INPUT.txt] OUTPUT\n");
     5    exit (2);
     6}
    27
    38int main (int argc, char **argv) {
     
    1520    // load command-line arguments, options, and system config data
    1621    pmConfig *config = psphotArguments (argc, argv);
    17     if (config == NULL) {
    18         psErrorStackPrint(stderr, "");
    19         exit(1);
    20     }
     22    if (config == NULL) usage ();
    2123
    2224    // load input data (config and images (signal, noise, mask)
Note: See TracChangeset for help on using the changeset viewer.