From 16352dd60b359343520d3d613f92865bba8c9a2c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 14 Dec 2007 19:36:14 +0100 Subject: add POPT_COMMON_CONFIGFILE which only provides --configfile (not -s) metze (This used to be commit af3392cc20942158ac9e0a533799c5904ff23347) --- source3/lib/popt_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/lib/popt_common.c') diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c index bc67a0fa28..b3a84a6f7c 100644 --- a/source3/lib/popt_common.c +++ b/source3/lib/popt_common.c @@ -150,6 +150,12 @@ struct poptOption popt_common_samba[] = { POPT_TABLEEND }; +struct poptOption popt_common_configfile[] = { + { NULL, 0, POPT_ARG_CALLBACK|POPT_CBFLAG_PRE|POPT_CBFLAG_POST, (void *)popt_common_callback }, + { "configfile", 0, POPT_ARG_STRING, NULL, 's', "Use alternate configuration file", "CONFIGFILE" }, + POPT_TABLEEND +}; + struct poptOption popt_common_version[] = { { NULL, 0, POPT_ARG_CALLBACK, (void *)popt_common_callback }, { "version", 'V', POPT_ARG_NONE, NULL, 'V', "Print version" }, -- cgit