diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-03-24 14:15:14 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-03-24 14:15:14 +0000 |
commit | 41a09c3c533ab170097309e1f91314eda32e4f4c (patch) | |
tree | a914e40801ca3c51a0b00399ff8282542b6cc198 /source3/lib | |
parent | e5ae6d548ff3c11a1be5ce3509da278b09994a34 (diff) | |
download | samba-41a09c3c533ab170097309e1f91314eda32e4f4c.tar.gz samba-41a09c3c533ab170097309e1f91314eda32e4f4c.tar.bz2 samba-41a09c3c533ab170097309e1f91314eda32e4f4c.zip |
Revoke some of the popt patch from metze I applied earlier today. It added
some double options and broke some parameters.
(This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/popt_common.c | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c index 06ba4fc898..edd54c13d5 100644 --- a/source3/lib/popt_common.c +++ b/source3/lib/popt_common.c @@ -112,22 +112,33 @@ static void popt_common_callback(poptContext con, } } -struct poptOption popt_common_samba[] = { +struct poptOption popt_common_connection[] = { { NULL, 0, POPT_ARG_CALLBACK, popt_common_callback }, - { "debuglevel", 'd', POPT_ARG_STRING, NULL, 'd', "Set debug level", "DEBUGLEVEL" }, - { "configfile", 's', POPT_ARG_STRING, NULL, 's', "Use alternative configuration file", - "CONFIGFILE" }, { "socket-options", 'O', POPT_ARG_STRING, NULL, 'O', "socket options to use", "SOCKETOPTIONS" }, - { "version", 'V', POPT_ARG_NONE, NULL, 'V', "Print version" }, - { "log-basename", 'l', POPT_ARG_STRING, NULL, 'l', "Basename for log/debug files", - "LOGFILEBASE" }, { "netbiosname", 'n', POPT_ARG_STRING, NULL, 'n', "Primary netbios name", "NETBIOSNAME" }, { "workgroup", 'W', POPT_ARG_STRING, NULL, 'W', "Set the workgroup name", "WORKGROUP" }, { "scope", 'i', POPT_ARG_STRING, NULL, 'i', "Use this Netbios scope", "SCOPE" }, POPT_TABLEEND }; +struct poptOption popt_common_samba[] = { + { NULL, 0, POPT_ARG_CALLBACK, popt_common_callback }, + { "debuglevel", 'd', POPT_ARG_STRING, NULL, 'd', "Set debug level", "DEBUGLEVEL" }, + { "configfile", 's', POPT_ARG_STRING, NULL, 's', "Use alternative configuration file", "CONFIGFILE" }, + { "log-basename", 'l', POPT_ARG_STRING, NULL, 'l', "Basename for log/debug files", "LOGFILEBASE" }, + { "version", 'V', POPT_ARG_NONE, NULL, 'V', "Print version" }, + POPT_TABLEEND +}; + +struct poptOption popt_common_version[] = { + { NULL, 0, POPT_ARG_CALLBACK, popt_common_callback }, + { "version", 'V', POPT_ARG_NONE, NULL, 'V', "Print version" }, + POPT_TABLEEND +}; + + + /**************************************************************************** * get a password from a a file or file descriptor * exit on failure |