diff options
author | Tim Potter <tpot@samba.org> | 2002-07-29 09:25:23 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-07-29 09:25:23 +0000 |
commit | 11785c7bc83b153e8d177928283474bbb0e5f3a9 (patch) | |
tree | ded8d50a67d0dfc41c1a1eb65bc7d1c40a0bdc41 /source3/rpcclient/rpcclient.c | |
parent | 6eaa06ac53840f36a9c75650f21565828e8fbbd4 (diff) | |
download | samba-11785c7bc83b153e8d177928283474bbb0e5f3a9.tar.gz samba-11785c7bc83b153e8d177928283474bbb0e5f3a9.tar.xz samba-11785c7bc83b153e8d177928283474bbb0e5f3a9.zip |
Use common popt definition for -d option.
(This used to be commit 8c17904848a6206ab35652625ff5f3afcf6bcb0d)
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 15e7c38002..2d86fb1d3d 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -612,7 +612,6 @@ static void usage(void) *opt_configfile=NULL, *opt_logfile=NULL, *opt_ipaddr=NULL; - static int opt_debuglevel; pstring logfile; struct cmd_set **cmd_set; struct in_addr server_ip; @@ -626,14 +625,13 @@ static void usage(void) {"authfile", 'A', POPT_ARG_STRING, &opt_authfile, 'A'}, {"conf", 's', POPT_ARG_STRING, &opt_configfile, 's'}, {"nopass", 'N', POPT_ARG_NONE, &got_pass}, - {"debug", 'd', POPT_ARG_INT, &opt_debuglevel, 'd'}, - {"debuglevel", 'd', POPT_ARG_INT, &opt_debuglevel, 'd'}, {"user", 'U', POPT_ARG_STRING, &opt_username, 'U'}, {"workgroup", 'W', POPT_ARG_STRING, &opt_domain, 'W'}, {"command", 'c', POPT_ARG_STRING, &cmdstr}, {"logfile", 'l', POPT_ARG_STRING, &opt_logfile, 'l'}, {"help", 'h', POPT_ARG_NONE, 0, 'h'}, {"dest-ip", 'I', POPT_ARG_STRING, &opt_ipaddr, 'I'}, + { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_debug }, { NULL } }; @@ -673,10 +671,6 @@ static void usage(void) pstrcpy(dyn_CONFIGFILE, opt_configfile); break; - case 'd': - DEBUGLEVEL = opt_debuglevel; - break; - case 'U': { char *lp; |