diff options
author | Karolin Seeger <ks@sernet.de> | 2007-12-14 10:52:31 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-14 11:20:27 +0100 |
commit | 04131b26de08b3cea948ef89921c56561d69dd1d (patch) | |
tree | 62f31d0f3911d65f1dd47c63c5065fdfff6d186b /source/client | |
parent | 075d315e0f72d506b70040da10940e4af131b4e2 (diff) | |
download | samba-04131b26de08b3cea948ef89921c56561d69dd1d.tar.gz samba-04131b26de08b3cea948ef89921c56561d69dd1d.tar.xz samba-04131b26de08b3cea948ef89921c56561d69dd1d.zip |
Make smbclient to display error message and usage in the case of invalid options.
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c index d59af9e6cfb..e1d67d783bd 100644 --- a/source/client/client.c +++ b/source/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); } } |