From 015b47fa149851e5e332c38926badc3e85cba68d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 9 Feb 2011 13:44:42 +0100 Subject: s3:popt: add POPT_COMMON_OPTION to provide only the "--option" feature --- source3/lib/popt_common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c index 32906432df..8ff2b8023b 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 -- cgit