From: Peter Verthez Date: Sat, 10 Nov 2001 19:47:53 +0000 (+0000) Subject: Added help text; better debug options. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=c6ebeddd138985207106a557f85f99e94c311f8e;p=gedcom-parse.git Added help text; better debug options. --- diff --git a/standalone.c b/standalone.c index c54d46d..06ac82a 100644 --- a/standalone.c +++ b/standalone.c @@ -3,29 +3,51 @@ #include "gedcom.h" +void show_help () +{ + printf("gedcom-parse test program for libgedcom\n"); + printf("Options:\n"); + printf(" -h Show this help text\n"); + printf(" -nc Disable compatibility mode\n"); + printf(" -fi Fail immediately on errors\n"); + printf(" -fd Deferred fail on errors, but parse completely\n"); + printf(" -fn No fail on errors\n"); + printf(" -dg Debug setting: only libgedcom debug messages\n"); + printf(" -da Debug setting: libgedcom + yacc debug messages\n"); +} + int main(int argc, char* argv[]) { MECHANISM mech = IMMED_FAIL; int compat_enabled = 1; + int debug_level = 0; if (argc > 1) { int i; for (i=1; i