summaryrefslogtreecommitdiffstats
path: root/source/client
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
commit04131b26de08b3cea948ef89921c56561d69dd1d (patch)
tree62f31d0f3911d65f1dd47c63c5065fdfff6d186b /source/client
parent075d315e0f72d506b70040da10940e4af131b4e2 (diff)
downloadsamba-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.c5
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);
}
}