Added a note if the parse failed with compatibility mode disabled.
[gedcom-parse.git] / bin / gedcom-check.c
index ef2baf8f96946fdbad2704230e5c645b3a0b5e68..0accc9c6730920e018a4af7c354c085115d5ff6b 100644 (file)
@@ -110,6 +110,7 @@ int main(int argc, char* argv[])
   setlocale(LC_ALL, "");
   gedcom_set_debug_level(debug_level, NULL);
   gedcom_set_compat_handling(compat_enabled);
+  gedcom_set_compat_options(COMPAT_ALLOW_OUT_OF_CONTEXT);
   gedcom_set_error_handling(mech);
   gedcom_set_message_handler(gedcom_message_handler);
   gedcom_set_default_callback(default_cb);
@@ -121,6 +122,10 @@ int main(int argc, char* argv[])
   }
   else {
     printf(_("Parse failed\n"));
+    if (!compat_enabled) {
+      printf(_("  Note: Compatibility mode was not enabled\n"));
+      printf(_("  You could try the check again using the '-c' option\n"));
+    }
   }
   return result;
 }