#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>

void help(const char *name)
{
    fprintf (stderr, "STAC: Simultaneous Telescope Array Combination\n"
	     "Usage: %s [-h] [-v] [-g GAIN] [-r RN] [-o NX NY] [-S] [-s SAT] [-b BAD] [-p FILE MAP] [-a APER] [-k REJ] [-n NREJECT] [-k FRAC] [-G GRAD] OUT IN1 IN2...\n"
	     "where\n"
	     "\t-h           Help (this info)\n"
	     "\t-v           Increase verbosity level\n"
	     "\t-g           Gain (e/ADU) for detectors\n"
	     "\t-r           Read noise (e) for detectors\n"
	     "\t-o NX NY     Size of output image (512, 512)\n"
	     "\t-S           Save shifted images (false)\n"
	     "\t-s SAT       Saturation level (65535)\n"
	     "\t-b BAD       Bad level (0)\n"
	     "\t-p FILE MAP  Specify file containing star coordinates, with map\n"
	     "\t-a APER      Aperture size to use for photometry (3 pix)\n"
	     "\t-k REJ       Rejection level (k-sigma; 3.5)\n"
	     "\t-n NREJECT   Number of rejection iterations (2)\n"
	     "\t-f FRAC      Fraction of pixel to be marked before considered bad (0.5)\n"
	     "\t-d GRAD      Gradient threshold for pixel to be marked (0.0)\n"
	     "\tOUT          Output image\n"
	     "\tIN1, IN2...  Input images, which have associated .map files.\n",
	     name
	);
}

