From 19938c0d2c38afdea04381ccfd8c91552744de13 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Tue, 21 Jan 2003 13:58:16 +0000 Subject: Properly display popt errors. Also fix debug to be -d for consistency with other progs. (This used to be commit 97133f7168852dc185dbf4492afcaf4b68180f65) --- source3/utils/net.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/utils') 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); } -- cgit