summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-01-21 13:58:16 +0000
committerJim McDonough <jmcd@samba.org>2003-01-21 13:58:16 +0000
commit19938c0d2c38afdea04381ccfd8c91552744de13 (patch)
tree57e1e93bfc9be039e6aeb291dde4307138e932ef /source3/utils
parente0762fe08d42c0cea38989973447b7e258fe4754 (diff)
downloadsamba-19938c0d2c38afdea04381ccfd8c91552744de13.tar.gz
samba-19938c0d2c38afdea04381ccfd8c91552744de13.tar.bz2
samba-19938c0d2c38afdea04381ccfd8c91552744de13.zip
Properly display popt errors. Also fix debug to be -d for consistency with other progs.
(This used to be commit 97133f7168852dc185dbf4492afcaf4b68180f65)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 3228b56e27..33195375f5 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -536,7 +536,7 @@ static struct functable net_func[] = {
{"force", 'f', POPT_ARG_NONE, &opt_force},
{"timeout", 't', POPT_ARG_INT, &opt_timeout},
{"machine-pass",'P', POPT_ARG_NONE, &opt_machine_pass},
- {"debuglevel", 'D', POPT_ARG_STRING, &debuglevel},
+ {"debuglevel", 'd', POPT_ARG_STRING, &debuglevel},
{ 0, 0, 0, 0}
};
@@ -570,7 +570,8 @@ static struct functable net_func[] = {
}
break;
default:
- d_printf("\nInvalid option\n");
+ d_printf("\nInvalid option %s: %s\n",
+ poptBadOption(pc, 0), poptStrerror(opt));
net_help(argc, argv);
exit(1);
}