Index: /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/initialize_setphot_client.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/initialize_setphot_client.c	(revision 38651)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/initialize_setphot_client.c	(revision 38652)
@@ -53,4 +53,10 @@
     remove_argument (N, &argc, argv);
     UserPatch.Dmax = atof (argv[N]);
+    remove_argument (N, &argc, argv);
+  }
+
+  REPAIR_BY_OBJID = FALSE;
+  if ((N = get_argument (argc, argv, "-repair-by-objid"))) {
+    REPAIR_BY_OBJID = TRUE;
     remove_argument (N, &argc, argv);
   }
Index: /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setphot.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 38651)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 38652)
@@ -136,8 +136,9 @@
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
 
-    if (VERBOSE)       { strextend (&command, "-v"); }
-    if (RESET)         { strextend (&command, "-reset"); }
-    if (UPDATE)        { strextend (&command, "-update"); }
-    if (UBERCAL)       { strextend (&command, "-ubercal"); }
+    if (VERBOSE)       	 { strextend (&command, "-v"); }
+    if (RESET)         	 { strextend (&command, "-reset"); }
+    if (UPDATE)        	 { strextend (&command, "-update"); }
+    if (UBERCAL)       	 { strextend (&command, "-ubercal"); }
+    if (REPAIR_BY_OBJID) { strextend (&command, "-repair-by-objid"); }
 
     fprintf (stderr, "command: %s\n", command);
