From: Peter Verthez Date: Sun, 5 Jan 2003 13:15:35 +0000 (+0000) Subject: Also allow debugging. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=b4eefef4181cd2d617a41e8ae635f16a05c62620;p=gedcom-parse.git Also allow debugging. --- 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