summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-12-14 19:36:14 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-14 19:36:14 +0100
commit16352dd60b359343520d3d613f92865bba8c9a2c (patch)
treec78d32f87b2cf28924882d398c395be17ab60f36 /source3/lib
parent4130053a5784122278fc02a8eb579f3cf81a1b0e (diff)
downloadsamba-16352dd60b359343520d3d613f92865bba8c9a2c.tar.gz
samba-16352dd60b359343520d3d613f92865bba8c9a2c.tar.bz2
samba-16352dd60b359343520d3d613f92865bba8c9a2c.zip
add POPT_COMMON_CONFIGFILE which only provides --configfile (not -s)
metze (This used to be commit af3392cc20942158ac9e0a533799c5904ff23347)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/popt_common.c6
1 files changed, 6 insertions, 0 deletions
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" },