summaryrefslogtreecommitdiffstats
path: root/source3/lib/popt_common.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-02-09 13:44:42 +0100
committerMichael Adam <obnox@samba.org>2011-02-09 14:00:34 +0100
commit015b47fa149851e5e332c38926badc3e85cba68d (patch)
tree2633435501d103c2c1316f96092713647bee0775 /source3/lib/popt_common.c
parentc6f797d020e5192be93fb4b006e984f5e1d63d75 (diff)
downloadsamba-015b47fa149851e5e332c38926badc3e85cba68d.tar.gz
samba-015b47fa149851e5e332c38926badc3e85cba68d.tar.xz
samba-015b47fa149851e5e332c38926badc3e85cba68d.zip
s3:popt: add POPT_COMMON_OPTION to provide only the "--option" feature
Diffstat (limited to 'source3/lib/popt_common.c')
-rw-r--r--source3/lib/popt_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c
index 32906432df4..8ff2b8023bf 100644
--- a/source3/lib/popt_common.c
+++ b/source3/lib/popt_common.c
@@ -193,6 +193,11 @@ struct poptOption popt_common_debuglevel[] = {
POPT_TABLEEND
};
+struct poptOption popt_common_option[] = {
+ { NULL, 0, POPT_ARG_CALLBACK|POPT_CBFLAG_POST, (void *)popt_common_callback },
+ { "option", 0, POPT_ARG_STRING, NULL, OPT_OPTION, "Set smb.conf option from command line", "name=value" },
+ POPT_TABLEEND
+};
/* Handle command line options:
* --sbindir