Index: /trunk/Ohana/src/addstar/src/args_load2mass.c
===================================================================
--- /trunk/Ohana/src/addstar/src/args_load2mass.c	(revision 16937)
+++ /trunk/Ohana/src/addstar/src/args_load2mass.c	(revision 16938)
@@ -18,5 +18,5 @@
 
   /*** provide additional data ***/ 
-  /* restrict to a portion of the sky? (UNUSED) */
+  /* restrict to a portion of the sky? */
   UserPatch.Rmin = 0;
   UserPatch.Rmax= 360;
@@ -34,17 +34,4 @@
     remove_argument (N, &argc, argv);
   }
-  /* override any header PHOTCODE values */
-  options.photcode = 0;
-  if ((N = get_argument (argc, argv, "-p"))) {
-    remove_argument (N, &argc, argv);
-    options.photcode = GetPhotcodeCodebyName (argv[N]);
-    remove_argument (N, &argc, argv);
-  }
-
-  options.timeref = 0; 
-  options.mosaic = FALSE;
-  options.existing_regions = FALSE;
-  options.skip_missed = FALSE;
-  options.closest = FALSE;
 
   /* only add to existing objects */
@@ -61,11 +48,4 @@
   }
 
-  /* select quality flags */
-  SELECT_2MASS_QUALITY = NULL;
-  if ((N = get_argument (argc, argv, "-2massquality"))) {
-    remove_argument (N, &argc, argv);
-    SELECT_2MASS_QUALITY = strcreate (argv[N]);
-    remove_argument (N, &argc, argv);
-  }
   /* extra error messages */
   VERBOSE = FALSE;
@@ -75,5 +55,11 @@
   }
 
-  /* other defaults */
+  /* other addstar options which cannot be used in load2mass */
+  options.photcode = 0;
+  options.timeref = 0; 
+  options.mosaic = FALSE;
+  options.existing_regions = FALSE;
+  options.skip_missed = FALSE;
+  options.closest = FALSE;
   options.nosort = FALSE;
   options.update = FALSE;
@@ -96,10 +82,9 @@
 static void help () {
 
-  fprintf (stderr, "USAGE\n");
-  fprintf (stderr, "  load2mass");
-  fprintf (stderr, "     add data from 2MASS catalog to fullsky\n\n");
+  fprintf (stderr, "USAGE: load2mass [options]\n");
+  fprintf (stderr, "  add data from 2MASS catalog to fullsky\n\n");
 
   fprintf (stderr, "  optional flags:\n");
-  fprintf (stderr, "  -p (photcode)         	  : specify photcode (override header)\n");
+  fprintf (stderr, "  -region Rmin Rmax Dmin Dmax : update only this portion of the sky\n");
   fprintf (stderr, "  -only-match           	  : only add measurements to existing objects\n");
   fprintf (stderr, "  -replace              	  : replace time/photcode measurements (no duplication)\n");
@@ -109,2 +94,22 @@
   exit (2);
 }
+
+# if (0)
+  /* select quality flags */
+  SELECT_2MASS_QUALITY = NULL;
+  if ((N = get_argument (argc, argv, "-2massquality"))) {
+    remove_argument (N, &argc, argv);
+    SELECT_2MASS_QUALITY = strcreate (argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+# endif
+
+# if (0)  
+  /* override any header PHOTCODE values */
+  if ((N = get_argument (argc, argv, "-p"))) {
+    remove_argument (N, &argc, argv);
+    options.photcode = GetPhotcodeCodebyName (argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+# endif
+
