From c6ebeddd138985207106a557f85f99e94c311f8e Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 10 Nov 2001 19:47:53 +0000 Subject: [PATCH] Added help text; better debug options. --- standalone.c | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) 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