Index: ztcfg.c =================================================================== RCS file: /usr/cvsroot/zaptel/ztcfg.c,v retrieving revision 1.19 diff -u -r1.19 ztcfg.c --- ztcfg.c 22 Dec 2004 04:44:26 -0000 1.19 +++ ztcfg.c 10 Jan 2005 03:55:13 -0000 @@ -1096,6 +1096,7 @@ " -c -- Use instead of " CONFIG_FILENAME "\n" " -h -- Generate this help statement\n" " -v -- Verbose (more -v's means more verbose)\n" + " -d [level] -- Generate debugging output. (Default level is 1.)\n" " -t -- Test mode only, do not apply\n" " -s -- Shutdown spans only\n" ,c); @@ -1108,7 +1109,7 @@ char *buf; char *key, *value; int x,found; - while((c = getopt(argc, argv, "thc:vs")) != -1) { + while((c = getopt(argc, argv, "thc:vsd::")) != -1) { switch(c) { case 'c': filename=optarg; @@ -1127,6 +1128,12 @@ break; case 's': stopmode = 1; + break; + case 'd': + if (optarg) + debug = atoi(optarg); + else + debug = 1; break; } }