From b4eefef4181cd2d617a41e8ae635f16a05c62620 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 5 Jan 2003 13:15:35 +0000 Subject: [PATCH] Also allow debugging. --- bin/gedcom-check.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/gedcom-check.c b/bin/gedcom-check.c index f81e27f..ef2baf8 100644 --- a/bin/gedcom-check.c +++ b/bin/gedcom-check.c @@ -47,6 +47,8 @@ void show_help () printf("Options:\n"); printf(" -h Show this help text\n"); printf(" -c Enable compatibility mode\n"); + printf(" -dg Debug setting: only libgedcom debug messages\n"); + printf(" -da Debug setting: libgedcom + yacc debug messages\n"); printf("Errors, warnings, ... are sent to stdout\n"); } @@ -69,13 +71,18 @@ int main(int argc, char* argv[]) { Gedcom_err_mech mech = DEFER_FAIL; int compat_enabled = 0; + int debug_level = 0; char* file_name = NULL; int result; if (argc > 1) { int i; for (i=1; i