summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-15 11:26:11 +0200
committerMichael Adam <obnox@samba.org>2008-07-15 13:03:24 +0200
commite7d08b673066a63aaa7ab54ac59566ae8a975672 (patch)
treee29a9534b36adb79af57ea5656f53ffd947d27d3 /source/lib
parentcd5d13dec0153c64d541e85bd13138b738cf50af (diff)
downloadsamba-e7d08b673066a63aaa7ab54ac59566ae8a975672.tar.gz
samba-e7d08b673066a63aaa7ab54ac59566ae8a975672.tar.xz
samba-e7d08b673066a63aaa7ab54ac59566ae8a975672.zip
popt: add a popt_common_debuglevel set of options providing -d|--debuglevel
Michael
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/popt_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/lib/popt_common.c b/source/lib/popt_common.c
index 25e41ab5f3c..b151f227427 100644
--- a/source/lib/popt_common.c
+++ b/source/lib/popt_common.c
@@ -171,6 +171,12 @@ struct poptOption popt_common_version[] = {
POPT_TABLEEND
};
+struct poptOption popt_common_debuglevel[] = {
+ { NULL, 0, POPT_ARG_CALLBACK, (void *)popt_common_callback },
+ { "debuglevel", 'd', POPT_ARG_STRING, NULL, 'd', "Set debug level", "DEBUGLEVEL" },
+ POPT_TABLEEND
+};
+
/* Handle command line options:
* --sbindir