git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
075d315
)
Make smbclient to display error message and usage in the case of invalid options.
author
Karolin Seeger
<ks@sernet.de>
Fri, 14 Dec 2007 09:52:31 +0000
(10:52 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 14 Dec 2007 10:20:27 +0000
(11:20 +0100)
source/client/client.c
patch
|
blob
|
history
diff --git
a/source/client/client.c
b/source/client/client.c
index d59af9e6cfb833bb2ff2504e8d8c76574b266187..e1d67d783bdf4e6d6c6d26b784e8cc4aff02b75d 100644
(file)
--- 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);
}
}