1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Make smbclient to display error message and usage in the case of invalid options.

This commit is contained in:
Karolin Seeger 2007-12-14 10:52:31 +01:00 committed by Volker Lendecke
parent 075d315e0f
commit 04131b26de

View File

@ -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);
}
}