Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 9240)
+++ trunk/ippTools/src/regtool.c	(revision 9250)
@@ -814,11 +814,8 @@
         return false;
     }
-    psString obstype = psMetadataLookupStr(&status, config->args, "-obstype");
-    if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -obstype");
-        return false;
-    }
-    if (!obstype) {
-        psError(PS_ERR_UNKNOWN, true, "-obstype is required");
+    // optional
+    psString object = psMetadataLookupStr(&status, config->args, "-object");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -object");
         return false;
     }
@@ -842,5 +839,5 @@
         ccd_temp,
         posang,
-        obstype
+        object
     );
 }
@@ -969,11 +966,8 @@
         return false;
     }
-    psString obstype = psMetadataLookupStr(&status, config->args, "-obstype");
-    if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -obstype");
-        return false;
-    }
-    if (!obstype) {
-        psError(PS_ERR_UNKNOWN, true, "-obstype is required");
+    // optional
+    psString object = psMetadataLookupStr(&status, config->args, "-object");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -object");
         return false;
     }
@@ -997,5 +991,5 @@
         ccd_temp,
         posang,
-        obstype
+        object
     );
 }
