From 4d7a337d52e474a870479b907a60c8d8b2536be2 Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Fri, 14 Dec 2007 10:52:31 +0100 Subject: Make smbclient to display error message and usage in the case of invalid options. (This used to be commit 04131b26de08b3cea948ef89921c56561d69dd1d) --- source3/client/client.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/client/client.c') diff --git a/source3/client/client.c b/source3/client/client.c index d59af9e6cf..e1d67d783b 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -4654,6 +4654,11 @@ static int do_message_op(void) case 'g': grepable=true; break; + default: + d_fprintf(stderr, "\nInvalid option %s: %s\n\n", + poptBadOption(pc, 0), poptStrerror(opt)); + poptPrintUsage(pc, stderr, 0); + exit(1); } } -- cgit