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 | dbac75b466831cade91dfad21a2bcbe4bd551b37 (patch) | |
tree | 1e05c09fa33d428e597a3d7156b9cc366e8f5f4b /source3/lib | |
parent | 4ce6f3e7dd5b3464a7819c597d646702b5e82327 (diff) | |
download | samba-dbac75b466831cade91dfad21a2bcbe4bd551b37.tar.gz samba-dbac75b466831cade91dfad21a2bcbe4bd551b37.tar.bz2 samba-dbac75b466831cade91dfad21a2bcbe4bd551b37.zip |
popt: add a popt_common_debuglevel set of options providing -d|--debuglevel
Michael
(This used to be commit e7d08b673066a63aaa7ab54ac59566ae8a975672)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/popt_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c index 25e41ab5f3..b151f22742 100644 --- a/source3/lib/popt_common.c +++ b/source3/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 |