summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarolin Seeger <ks@sernet.de>2007-12-14 10:52:31 +0100
committerVolker Lendecke <vl@samba.org>2007-12-14 11:20:27 +0100
commit4d7a337d52e474a870479b907a60c8d8b2536be2 (patch)
treeaa7c1384bd8d675f3f56c708b684f720fc703201
parent873f14ae408d5fa151f8e4f83c3dfe0c9b8a4d2d (diff)
downloadsamba-4d7a337d52e474a870479b907a60c8d8b2536be2.tar.gz
samba-4d7a337d52e474a870479b907a60c8d8b2536be2.tar.bz2
samba-4d7a337d52e474a870479b907a60c8d8b2536be2.zip
Make smbclient to display error message and usage in the case of invalid options.
(This used to be commit 04131b26de08b3cea948ef89921c56561d69dd1d)
-rw-r--r--source3/client/client.c5
1 files changed, 5 insertions, 0 deletions
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);
}
}