# include "dvomerge.h"

void usage (void) {
  fprintf (stderr, "USAGE: dvomerge (input1) and (input2) to (output)\n");
  fprintf (stderr, "   OR: dvomerge (input) into (output)\n");
  exit (2);
}

void help (int argc, char **argv) {

  /* check for help request */
  if (get_argument (argc, argv, "-help")) goto show_help;
  if (get_argument (argc, argv, "-h"))    goto show_help;
  return;

show_help:

  fprintf (stderr, "USAGE\n");
  fprintf (stderr, "  dvosplit (newlevel)\n\n");
  fprintf (stderr, "  optional flags:\n");
  fprintf (stderr, "  -region ra ra dec dec 	  : migrate catalogs in specified region\n");
  fprintf (stderr, "  -v                    	  : verbose mode\n");
  fprintf (stderr, "  -help                 	  : this list\n");
  fprintf (stderr, "  -h                    	  : this list\n\n");
  exit (2);
}

/** addstar modes:
 
    addstar (image.smp)  - add cmp/smp image data to db
    addstar -ref (file.dat) (photcode) 
    addstar -cat (USNO/2MASS/GSC) -region (ra dec - ra dec)

    -replace : ref/cat - replace existing match (photcode/time)
    -match   : ref/cat - only add measures to existing averages

    ref types: 
    ASCII - RA,DEC,M,dM in a table

    addstar 

**/
