diff options
author | Michael Adam <obnox@samba.org> | 2008-07-15 11:26:11 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-07-15 13:03:24 +0200 |
commit | e7d08b673066a63aaa7ab54ac59566ae8a975672 (patch) | |
tree | e29a9534b36adb79af57ea5656f53ffd947d27d3 /source/lib | |
parent | cd5d13dec0153c64d541e85bd13138b738cf50af (diff) | |
download | samba-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.c | 6 |
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 |